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