cvml.plot

cvml.plot.plot_confusion_matrix(cnf_matrix, classes, normalize=True, title='Confusion matrix', ylabel='True class', xlabel='Predicted class', cmap='Blues', colorbar=True, colorbar_aspect_ratio=None, classes_per_inch=5, **kwargs)[source]

Plot a confusion matrix. Normalization can be applied by setting normalize=True.

kwargs are parsed on to the plt.imshow function.

Source: http://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html#sphx-glr-auto-examples-model-selection-plot-confusion-matrix-py