src.report.distance_reclassification_report
Classes
|
- class src.report.distance_reclassification_report.DistanceReclassificationReport(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class to handle reports related to distance reclassifications. See
Report. See alsoDistanceReclassifier.- 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 DistanceReclassificationReport.
- 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 (string) and whose values are class indices (integer).
y (
np.ndarray) – The vector of point-wise labels.
- Returns:
String representing the class distribution.
- Return type:
str