File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ __pycache__
12
12
* .csv.bz2
13
13
* .pkl.gz
14
14
data /** /raw
15
+ data /2022- *
15
16
16
17
# Weights and Biases logs
17
18
wandb /
Original file line number Diff line number Diff line change 5
5
import plotly .graph_objects as go
6
6
import pytest
7
7
8
- from matbench_discovery import ROOT
9
- from matbench_discovery .load_preds import df_wbm
8
+ from matbench_discovery .load_preds import DATA_PATHS , df_wbm
10
9
from matbench_discovery .plots import (
11
10
AxLine ,
12
11
Backend ,
16
15
rolling_mae_vs_hull_dist ,
17
16
)
18
17
19
- DATA_DIR = f"{ ROOT } /data/2022-06-11-from-rhys"
20
-
21
18
test_dfs : dict [str , pd .DataFrame ] = {}
22
19
for model_name in ("Wren" , "CGCNN" , "Voronoi" ):
23
- df = pd .read_csv (
24
- f"{ DATA_DIR } /{ model_name .lower ()} -mp-initial-structures.csv" , nrows = 100
25
- ).set_index ("material_id" )
20
+ df = pd .read_csv (DATA_PATHS [model_name ], nrows = 100 ).set_index ("material_id" )
26
21
27
22
df ["e_above_hull_mp" ] = df_wbm .e_above_hull_mp2020_corrected_ppd_mp
28
-
29
23
model_preds = df .filter (like = r"_pred" ).mean (axis = 1 )
30
24
31
25
df ["e_above_hull_pred" ] = df .e_above_hull_mp + model_preds - df .e_form_target
32
-
33
26
test_dfs [model_name ] = df
34
27
35
28
You can’t perform that action at this time.
0 commit comments