Skip to content

Commit 2be7bc3

Browse files
committed
improve package structure
1 parent b957855 commit 2be7bc3

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ launcher*
2222
# data files
2323
*.pkl*
2424

25-
# deploy config
26-
.netlify
25+
# checkpoint files of trained models
26+
pretrained

ml_stability/hist_clf_vary.py ml_stability/stability_plot_scripts/hist_clf_vary.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
["wren", "voronoi", "cgcnn"],
3333
["tab:blue", "tab:orange", "tab:red"],
3434
):
35-
df = pd.read_csv(f"{ROOT}/data/{model_name}-mp-initial-structures.csv").set_index(
36-
"material_id"
37-
)
35+
df = pd.read_csv(f"{ROOT}/data/{model_name}-mp-initial-structures.csv")
36+
df = df.set_index("material_id")
3837

3938
df["e_above_hull"] = df_hull.e_above_hull
4039

@@ -122,15 +121,9 @@
122121
ax.plot(x[::100], f_ppv(x[::100]), linestyle="-", **line_kwargs)
123122

124123

125-
# ax.set_xticks((0, 2.5e4, 5e4, 7.5e4))
126-
ax.set_xticks((0, 2e4, 4e4, 6e4, 8e4))
127-
128-
ax.set_ylabel("Percentage")
129-
ax.set_xlabel("Number of Calculations")
124+
ax.set(xlabel="Number of Calculations", ylabel="Percentage")
130125

131-
ax.set_xlim((0, 8e4))
132-
# ax.set_xlim((0, 75000))
133-
ax.set_ylim((0, 100))
126+
ax.set(xlim=(0, 8e4), ylim=(0, 100), xticks=(0, 2e4, 4e4, 6e4, 8e4))
134127

135128
ax.plot((-1, -1), (-1, -1), color="tab:blue")
136129
ax.plot((-1, -1), (-1, -1), color="tab:red")
@@ -155,7 +148,6 @@
155148
)
156149

157150
ax.add_artist(legend1)
158-
# plt.gca().add_artist(legend1)
159151

160152
ax.set_aspect(1.0 / ax.get_data_ratio())
161153

0 commit comments

Comments
 (0)