jiehou commited on
Commit
0d1af66
·
1 Parent(s): ffe276b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -262,7 +262,7 @@ def visualize_ROC(set_threshold,set_input):
262
  ax.spines['right'].set_color('black')
263
  plt.xlabel('Threshold cut-off')
264
  plt.ylabel('F1-score & G-mean')
265
- plt.legend()
266
  plt.text(set_threshold, f1_score_cur, 'F1-score:%s' % (round(f1_score_cur,2)))
267
  plt.text(set_threshold, g_mean_cur, 'G-mean:%s' % (round(g_mean_cur,2)))
268
  plt.title("Threshold tuning curves (F1-score & G-mean)", fontsize=20)
 
262
  ax.spines['right'].set_color('black')
263
  plt.xlabel('Threshold cut-off')
264
  plt.ylabel('F1-score & G-mean')
265
+ plt.legend(loc='upper left')
266
  plt.text(set_threshold, f1_score_cur, 'F1-score:%s' % (round(f1_score_cur,2)))
267
  plt.text(set_threshold, g_mean_cur, 'G-mean:%s' % (round(g_mean_cur,2)))
268
  plt.title("Threshold tuning curves (F1-score & G-mean)", fontsize=20)