src.report.directional_reclassification_report

Classes

DirectionalReclassificationReport(**kwargs)

class src.report.directional_reclassification_report.DirectionalReclassificationReport(**kwargs)
Author:

Alberto M. Esmoris Pena

Class to handle reports related to directional reclassifications. See Report. See also 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 DirectionalReclassificationReport.

Parameters:

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

to_class_distribution(title, lut, y)

Generate a string representing a class distribution.

Parameters:
  • title (str) – The title or name for the class distribution representation.

  • lut (dict) – The look-up table whose keys are class names and whose values are class indices.

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

Returns:

String representing the class distribution.

Return type:

str