SingleComponentDistanceClassifier#
Module: exa.core.multistate_classifier.distance_classifier
- class SingleComponentDistanceClassifier#
Bases:
SingleComponentClassifierComponent classifier that assigns states based on distance to the average readout value of each state.
Attributes
The label used as part of the observation name for this classifier.
The names of the model parameters used by this classifier.
Methods
- LABEL = 'distance_component_classifier'#
The label used as part of the observation name for this classifier.
- MODEL_PARAMETERS: ClassVar[list[str]] = ['state_0_mean', 'state_1_mean', 'state_2_mean', 'inverse_assignment_error']#
The names of the model parameters used by this classifier.
- apply(input_data, component, data_variable_label, component_override)#
Apply the distance classifier to data.
Updates the provided data with the classification results.
- calibrate(input_data, component, data_variable_label)#
Calibrate the distance classifier with data.
- Parameters:
- Returns:
The mapping of observation names to calibrated model parameters.
- Return type:
Inheritance
