Skip to content

Commit

Permalink
Response to review (#38)
Browse files Browse the repository at this point in the history
* update requirements

* format with black

* fix umlaut
  • Loading branch information
nwlandry authored Aug 18, 2024
1 parent 64962fe commit f18ee8d
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 11 deletions.
Binary file modified Figures/Fig2/fig2.pdf
Binary file not shown.
Binary file modified Figures/Fig2/fig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Figures/Fig4/fig4.pdf
Binary file not shown.
Binary file modified Figures/Fig4/fig4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Figures/Fig5/fig5.pdf
Binary file not shown.
Binary file modified Figures/Fig5/fig5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions plot_fig1.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@

ax3.semilogx(tmax, np.median(performance[0], axis=1), color="C0", label="Simple")
ax3.semilogx(tmax, np.median(performance[1], axis=1), color="C1", label="Complex")
min_idx = np.where((np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0)[
0
].min()
max_idx = np.where((np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0)[
0
].max()
min_idx = np.where(
(np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0
)[0].min()
max_idx = np.where(
(np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0
)[0].max()
print(tmax[min_idx])
print(tmax[max_idx])

Expand Down
2 changes: 1 addition & 1 deletion plot_fig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
r"Threshold, $\tau=2$",
]
keys = ["p", "alpha", "size"]
titles = ["Erdös-Rényi", "Power-law CM", "Clustered"]
titles = ["Erdős-Rényi", "Power-law CM", "Clustered"]
labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$"]

xticks = [
Expand Down
1 change: 0 additions & 1 deletion plot_fig3.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import fig_settings as fs
from lcs import *


fs.set_fonts()

with open(f"Data/zkc_tmax_comparison.json") as file:
Expand Down
2 changes: 1 addition & 1 deletion plot_fig4.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
r"Threshold, $\tau=2$",
]
keys = ["p", "alpha", "size"]
titles = ["Erdös-Rényi", "Power-law CM", "Clustered"]
titles = ["Erdős-Rényi", "Power-law CM", "Clustered"]
labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$"]
xticks = [
[0, 0.5, 1],
Expand Down
10 changes: 8 additions & 2 deletions plot_fig5.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@
r"Threshold, $\tau=3$",
]
keys = ["p", "alpha", "size", "epsilon", "p"]
titles = ["Erdös-Rényi", "Power-law CM", "Clustered", "SBM", "Small-World"]
labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$", r"Imbalance, $\epsilon$", r"Rewiring prob., $p$"]
titles = ["Erdős-Rényi", "Power-law CM", "Clustered", "SBM", "Small-World"]
labels = [
r"Density, $p$",
r"Exponent, $\alpha$",
r"Clique size, $s$",
r"Imbalance, $\epsilon$",
r"Rewiring prob., $p$",
]
xticks = [
[0, 0.5, 1],
[-4, -3.5, -3, -2.5, -2, -1.5],
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ arviz
seaborn
joblib
scikit-learn
cmasher

0 comments on commit f18ee8d

Please sign in to comment.