Skip to content
Snippets Groups Projects
Commit 504d1696 authored by Schneider Leo's avatar Schneider Leo
Browse files

debugging confusion matrix

parent 488b3c92
No related branches found
No related tags found
No related merge requests found
...@@ -236,6 +236,7 @@ def make_prediction_duo(model, data, f_name): ...@@ -236,6 +236,7 @@ def make_prediction_duo(model, data, f_name):
print('Prediction made') print('Prediction made')
# Build confusion matrix # Build confusion matrix
cf_matrix = confusion_matrix(y_true, y_pred) cf_matrix = confusion_matrix(y_true, y_pred)
print('CM made')
df_cm = pd.DataFrame(cf_matrix[:, None], index=[i for i in classes], df_cm = pd.DataFrame(cf_matrix[:, None], index=[i for i in classes],
columns=[i for i in classes]) columns=[i for i in classes])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment