Skip to content
Snippets Groups Projects
Commit 99de43e3 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent e51f1eee
No related branches found
No related tags found
No related merge requests found
...@@ -65,5 +65,7 @@ def plot_confusion_matrix(cm, labels, title='Confusion matrix', filename = 'conf ...@@ -65,5 +65,7 @@ def plot_confusion_matrix(cm, labels, title='Confusion matrix', filename = 'conf
ax.text(j, i, format(cm[i, j], 'd') if cm[i,j] != 0 else '.', horizontalalignment="center", fontsize=6, verticalalignment='center', color= "black") ax.text(j, i, format(cm[i, j], 'd') if cm[i,j] != 0 else '.', horizontalalignment="center", fontsize=6, verticalalignment='center', color= "black")
fig.set_tight_layout(True) fig.set_tight_layout(True)
plt.title(title, loc='left', fontweight='bold', fontsize=6)
ImageDirAndName = os.path.join('/Users/tomrink', filename) ImageDirAndName = os.path.join('/Users/tomrink', filename)
fig.savefig(ImageDirAndName) fig.savefig(ImageDirAndName)
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