jiehou commited on
Commit
f2e521e
·
1 Parent(s): 59a9d7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,7 +131,7 @@ def visualize_ROC(set_threshold,set_input):
131
  ax.spines['right'].set_color('black')
132
  plt.xlabel('False Positive Rate (1 - specificity)')
133
  plt.ylabel('True Positive Rate (Recall)')
134
- plt.text(TPR, TPR, 'TPR:%s, FPR:%s' % (FPR,TPR))
135
  plt.title("ROC curve", fontsize=20)
136
  plt.tight_layout()
137
 
@@ -166,7 +166,7 @@ interface = gr.Interface(fn=visualize_ROC,
166
  [0.5,get_example()],
167
  [0.7,get_example()],
168
  ],
169
- title="CSCI4750/5750: Demo for Receiver Operating Characteristic (ROC) curve (Balanced classes)",
170
  description= "Click examples below for a quick demo",
171
  theme = 'huggingface',
172
  layout = 'horizontal',
 
131
  ax.spines['right'].set_color('black')
132
  plt.xlabel('False Positive Rate (1 - specificity)')
133
  plt.ylabel('True Positive Rate (Recall)')
134
+ plt.text(FPR, TPR, 'FPR:%s, TPR:%s' % (round(FPR,2),round(TPR,2)))
135
  plt.title("ROC curve", fontsize=20)
136
  plt.tight_layout()
137
 
 
166
  [0.5,get_example()],
167
  [0.7,get_example()],
168
  ],
169
+ title="CSCI4750/5750: Demo for Receiver Operating Characteristic (ROC) curve",
170
  description= "Click examples below for a quick demo",
171
  theme = 'huggingface',
172
  layout = 'horizontal',