plot Threshold color fix

isaac
Pavan Mandava 5 years ago
parent bd559e0d8a
commit 2b4b09864d

@ -190,7 +190,7 @@ def plot_confusion_matrix(confusion_mat, classifier_name, plot_file_name):
plt.xticks(tick_marks, target_names, rotation=45)
plt.yticks(tick_marks, target_names)
thresh = confusion_mat.max() / confusion_mat.max() / 2
thresh = confusion_mat.max() / 2
for i, j in itertools.product(range(confusion_mat.shape[0]), range(confusion_mat.shape[1])):
plt.text(j, i, "{:,}".format(confusion_mat[i, j]),
horizontalalignment="center",

Loading…
Cancel
Save