Upload folder using huggingface_hub
Browse files- benchmark/evaluate.py +3 -4
benchmark/evaluate.py
CHANGED
|
@@ -13,19 +13,18 @@ import json, os, sys, time, argparse
|
|
| 13 |
from pathlib import Path
|
| 14 |
from collections import Counter, defaultdict
|
| 15 |
|
| 16 |
-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."
|
| 17 |
|
| 18 |
import numpy as np
|
| 19 |
|
| 20 |
-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
|
| 21 |
from src.evaluation.metrics import compute_metrics
|
| 22 |
|
| 23 |
-
BENCHMARK_DIR = Path(
|
| 24 |
SPLITS_DIR = BENCHMARK_DIR / "splits"
|
| 25 |
RESULTS_DIR = BENCHMARK_DIR / "results"
|
| 26 |
RESULTS_DIR.mkdir(parents=True, exist_ok=True)
|
| 27 |
|
| 28 |
-
DATASET_PATH = "
|
| 29 |
TARGETS = ["formation_energy_per_atom", "energy_above_hull", "band_gap"]
|
| 30 |
TARGET_LABELS = dict(zip(TARGETS, ["FE", "EaH", "BG"]))
|
| 31 |
|
|
|
|
| 13 |
from pathlib import Path
|
| 14 |
from collections import Counter, defaultdict
|
| 15 |
|
| 16 |
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
| 17 |
|
| 18 |
import numpy as np
|
| 19 |
|
|
|
|
| 20 |
from src.evaluation.metrics import compute_metrics
|
| 21 |
|
| 22 |
+
BENCHMARK_DIR = Path(__file__).resolve().parent
|
| 23 |
SPLITS_DIR = BENCHMARK_DIR / "splits"
|
| 24 |
RESULTS_DIR = BENCHMARK_DIR / "results"
|
| 25 |
RESULTS_DIR.mkdir(parents=True, exist_ok=True)
|
| 26 |
|
| 27 |
+
DATASET_PATH = os.path.join(os.path.dirname(__file__), "..", "dataset", "entries_final_v3.json")
|
| 28 |
TARGETS = ["formation_energy_per_atom", "energy_above_hull", "band_gap"]
|
| 29 |
TARGET_LABELS = dict(zip(TARGETS, ["FE", "EaH", "BG"]))
|
| 30 |
|