Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
| 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
|
| 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',
|