src.plot.directional_reclassification_plot

Classes

DirectionalReclassificationPlot(**kwargs)

class src.plot.directional_reclassification_plot.DirectionalReclassificationPlot(**kwargs)
Author:

Alberto M. Esmoris Pena

Class to plot the results of a directional reclassification task.

See MplPlot and DirectionalReclassifier.

Variables:
  • yin (np.ndarray) – The vector of point-wise input labels.

  • yout (np.ndarray) – The vector of point-wise output labels.

  • yinlut (dict) – The look-up table whose keys are input class names and whose values are the corresponding input class indices.

  • youtlut (dict) – The look-up table whose keys are output class names and whose values are the corresponding output class indices.

__init__(**kwargs)

Initialize an instance of DirectionalReclassificationPlot.

Parameters:

kwargs – The key-word arguments defining the plot’s attributes.

plot(**kwargs)

Plot the class distribution of the original and transformed classes.

See plot.Plot.plot().

plot_class_distribution(ax, lut, y)

Plot the class distribution.

Parameters:
  • ax – The axes where the plot must be drawn.

  • lut – The look-up table of the classes whose keys are the class names and whose values are the class indices.

  • y – The point-wise classes.

Returns:

Nothing at all, but the subplot is drawn in the given axes.