src.plot.distance_reclassification_plot

Classes

DistanceReclassificationPlot(**kwargs)

class src.plot.distance_reclassification_plot.DistanceReclassificationPlot(**kwargs)
Author:

Alberto M. Esmoris Pena

Class to plot the results of a distance reclassification task.

See MplPlot and DistanceReclassifier.

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 DistanceReclassificationPlot.

Parameters:

kwargs – The key-word arguments defining hte 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 input classes whose keys are the class names and whose values are the class indices.

  • y – The point-wise classes.

Returns:

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