SingleComponentClassifier#
Module: exa.core.multistate_classifier.classifier
- class SingleComponentClassifier#
Bases:
ABCABC for single component classifier.
Implementation of classifier to single component readouts without any correlations to other components. Also implements assignment correction.
Attributes
The label used as part of the observation name for this classifier.
The names of the model parameters used by this classifier.
Methods
Apply classifier to data.
Calibrate classifier with data.
Get settings corresponding to component classifier parameters.
Map component and model parameter to label that is used for retrieving and saving observations.
Get observation names corresponding to the component.
Get observation names and values from observations.
Get parameters from setting node.
- MODEL_PARAMETERS: ClassVar[list[str]] = []#
The names of the model parameters used by this classifier.
- LABEL = 'multi_state_classifier'#
The label used as part of the observation name for this classifier.
- abstractmethod apply(input_data, component, data_variable_label, component_override)#
Apply classifier to data.
Updates the input data with the classification results.
- Parameters:
- Return type:
None
- abstractmethod calibrate(input_data, component, data_variable_label)#
Calibrate classifier with data.
- Parameters:
- Returns:
The mapping of observation names to calibrated model parameters.
- Return type:
- get_observation_name(component, parameter)#
Map component and model parameter to label that is used for retrieving and saving observations.
- get_observation_names(component)#
Get observation names corresponding to the component.
- get_parameter_values(component)#
Get observation names and values from observations.
- get_component_settings(component)#
Get settings corresponding to component classifier parameters.
Parameters missing from observations are left out.
- Parameters:
component (str) – The component to get the classifier settings for.
- Returns:
The setting node containing the classifier model parameters loaded from observations.
- Return type:
- setting_node_to_parameters(setting_node, component)#
Get parameters from setting node.
Inverse of
get_component_settings().- Parameters:
setting_node (SettingNode) – The setting node containing the classifier model parameters for the component.
component (str) – The component the setting node belongs to.
- Returns:
The mapping of observation names to model parameter values.
- Return type:
Inheritance
