Download src/train_t2_graybox_closure.py from HaomingLuo/AgentFEM-Material-Loading-Memory: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/datasets/HaomingLuo/AgentFEM-Material-Loading-Memory/resolve/main/src/train_t2_graybox_closure.py
- Command line
-
hf download hf://datasets/HaomingLuo/AgentFEM-Material-Loading-Memory/src/train_t2_graybox_closure.py
-
curl -L -o train_t2_graybox_closure.py https://huggingface.co/datasets/HaomingLuo/AgentFEM-Material-Loading-Memory/resolve/main/src/train_t2_graybox_closure.py
735 Bytes
| """Train DENRM on the intentionally mismatched incomplete-physics cohort.""" | |
| from pathlib import Path | |
| from src.generate_t2_graybox_closure import DATA_PATH, MATERIAL | |
| from src.train_t2_graybox_discrete_energy import run | |
| ROOT = Path(__file__).resolve().parents[1] | |
| if __name__ == "__main__": | |
| run( | |
| graybox_steps=1600, | |
| gru_epochs=60, | |
| data_path=DATA_PATH, | |
| material=MATERIAL, | |
| model_dir=ROOT / "models" / "t2_graybox_closure_v1", | |
| artifact_dir=ROOT / "artifacts" / "t2_graybox_closure_v1", | |
| scope=( | |
| "out-of-template fixed material: three-memory tabulated reference; " | |
| "two-memory DENRM closure; reference equations and parameters hidden" | |
| ), | |
| ) | |