Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,6 +192,9 @@ def show_metrics(test,pred,name):
|
|
| 192 |
my_Matthews_coefficient=metrics.matthews_corrcoef(test, pred)
|
| 193 |
|
| 194 |
st.header(f'Metrics for {my_Name}:')
|
|
|
|
|
|
|
|
|
|
| 195 |
st.write(f'Accuracy Score........{metrics.accuracy_score(test, pred):.4f}\n\n' \
|
| 196 |
#f'ROC AUC Score.........{my_ROC_AUC_score:.4f}\n\n' \
|
| 197 |
f'Weighted f1 score.....{my_Weighted_f1:.4f}\n\n' \
|
|
|
|
| 192 |
my_Matthews_coefficient=metrics.matthews_corrcoef(test, pred)
|
| 193 |
|
| 194 |
st.header(f'Metrics for {my_Name}:')
|
| 195 |
+
report =metrics.classification_report(test, pred, output_dict=True)
|
| 196 |
+
df_report = pd.DataFrame(report).transpose()
|
| 197 |
+
st.dataframe(df_report )
|
| 198 |
st.write(f'Accuracy Score........{metrics.accuracy_score(test, pred):.4f}\n\n' \
|
| 199 |
#f'ROC AUC Score.........{my_ROC_AUC_score:.4f}\n\n' \
|
| 200 |
f'Weighted f1 score.....{my_Weighted_f1:.4f}\n\n' \
|