eolearn.visualization.utils

The module provides some utility functions for plotting

eolearn.visualization.utils.plot_confusion_matrix(confusion_matrix, classes, normalize=True, title='Confusion matrix', cmap=<matplotlib.colors.LinearSegmentedColormap object>, xlabel='Predicted label', ylabel='True label')[source]

Make a single confusion matrix plot.

Parameters:
  • confusion_matrix (ndarray) –

  • classes (list[str]) –

  • normalize (bool) –

  • title (str) –

  • cmap (str | Colormap | None) –

  • xlabel (str) –

  • ylabel (str) –

Return type:

None