Download scripts/result.py from OneScience-Group/GCRM-ConvectionNN: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/OneScience-Group/GCRM-ConvectionNN/resolve/main/scripts/result.py
- Command line
-
hf download hf://OneScience-Group/GCRM-ConvectionNN/scripts/result.py
-
curl -L -o result.py https://huggingface.co/OneScience-Group/GCRM-ConvectionNN/resolve/main/scripts/result.py
520 Bytes
| from pathlib import Path | |
| import sys | |
| ROOT = Path(__file__).resolve().parents[1] | |
| sys.path.insert(0, str(ROOT)) | |
| from model.gcrm_convectionnn import evaluate_and_plot, load_yaml | |
| if __name__ == "__main__": | |
| config = load_yaml(ROOT / "conf/config.yaml") | |
| summary = evaluate_and_plot(str(ROOT / config["paths"]["predictions"]), | |
| str(ROOT / config["paths"]["evaluation_metrics"]), | |
| str(ROOT / config["paths"]["figure"])) | |
| print("checks passed", summary) | |