aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-02-04 10:07:50 -0500
committerjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-02-04 10:07:50 -0500
commitb6be39f8c985a46ae6a1b777a82ae80ab1a02528 (patch)
tree43d5eb58cc952d0ab1dec1620e403b4a8d23f523
parent92ea33105921065e52bce2c1ec12b81bd5ad0fd9 (diff)
downloadcascades-b6be39f8c985a46ae6a1b777a82ae80ab1a02528.tar.gz
adding second try figure
-rw-r--r--src/make_plots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/make_plots.py b/src/make_plots.py
index cbe027e..556d27a 100644
--- a/src/make_plots.py
+++ b/src/make_plots.py
@@ -49,12 +49,12 @@ def plot_graph(figure_name):
plot information in a pretty way
"""
plt.clf()
- x = [50, 100, 500, 1000, 2000, 5000]
+ x = [np.log(50), np.log(100), np.log(500), np.log(1000), np.log(2000), np.log(5000)]
greedy = [.09, .15, .4, .63, .82, .92]
lasso = [.07, .30, .46, .65, 0, 0]
max_likel = [.21, .29, .67, .8, .87, .9]
sparse_recov = [.25, .32, .7, .82, .89, .92]
- plt.axis((0, 5000, 0, 1))
+ plt.axis((0, np.log(6000), 0, 1))
plt.xlabel("Number of Cascades")
plt.ylabel("F1 score")
plt.grid(color="lightgrey")