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