Skip to content

Commit bbf5a96

Browse files
committed
Add graphs
1 parent 5c1cce4 commit bbf5a96

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Binary file not shown.
Binary file not shown.

examples/benchmarking_large/report.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import matplotlib.pyplot as plt
2+
import seaborn as sb
3+
import pandas as pd
4+
5+
results_df = pd.read_csv('./output/result_2018-09-02.csv')
6+
7+
# Box plot with results grouped by encoder
8+
f = plt.figure(figsize=(15, 9))
9+
sb.boxplot(data=results_df, x='encoder', y='test_auc', notch=True)
10+
plt.grid(True, axis='y')
11+
f.savefig("./output/boxplot_encoder.pdf", bbox_inches='tight')
12+
13+
# The results grouped by encoder + classifier
14+
f = plt.figure(figsize=(12, 12))
15+
for index, clf in enumerate(results_df['model'].unique()):
16+
plt.subplot(3, 3, index + 1)
17+
plt.title(clf)
18+
sb.boxplot(data=results_df.loc[results_df['model'] == clf], y='encoder', x='test_auc', notch=True)
19+
plt.grid(True, axis='x')
20+
plt.ylabel('')
21+
if index < 6 != 0:
22+
plt.xlabel('')
23+
if index % 3 != 0:
24+
plt.yticks([])
25+
plt.tight_layout()
26+
plt.xlim(0.0, 1.0)
27+
f.savefig("./output/boxplot_encoder_model.pdf", bbox_inches='tight')

0 commit comments

Comments
 (0)