Skip to content

Commit 10bda81

Browse files
committed
updates
1 parent a6dc619 commit 10bda81

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/tiny_taxinet_train/barplot_tiny_imagenet.py

+22-1
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@
3737

3838
order = ['morning', 'afternoon', 'overcast', 'night']
3939

40+
# barplot 1
41+
#########################################################
4042
# Draw a nested boxplot to show bills by day and time
4143
sns.boxplot(x = x_var, y = y_var,
4244
hue = hue_var, data = df, order = order)
4345
plt.title(title_str)
4446
plt.savefig(results_dir + '/all_tiny_taxinet_barplot.pdf')
4547
plt.close()
4648

47-
49+
# barplot 2
50+
#########################################################
4851
order = ['morning', 'afternoon', 'overcast']
4952

5053
# Draw a nested boxplot to show bills by day and time
@@ -53,3 +56,21 @@
5356
plt.title(title_str)
5457
plt.savefig(results_dir + '/subset_tiny_taxinet_barplot.pdf')
5558
plt.close()
59+
60+
x_var = 'Evaluation Condition'
61+
y_var = 'Loss'
62+
hue_var = 'Model Type'
63+
64+
title_str = 'Tiny Taxinet Pytorch Model'
65+
66+
order = ['morning', 'afternoon', 'overcast', 'night']
67+
68+
col_var = 'Train Condition'
69+
# barplot 1
70+
#########################################################
71+
# Draw a nested boxplot to show bills by day and time
72+
sns.catplot(x = x_var, y = y_var, col = hue_var,
73+
hue = col_var, data = df, order = order, kind='bar')
74+
plt.savefig(results_dir + '/type_tiny_taxinet_barplot.pdf')
75+
plt.close()
76+

0 commit comments

Comments
 (0)