TargetSpec#
- class skactiveml.utils.TargetSpec(task: str, target_type: str, annotation_type: str, classes: tuple | None)[source]#
Bases:
objectImmutable description of resolved target semantics.
- Parameters:
- task“classification” or “regression”
The prediction task.
- target_type“single-output” or “multi-label” or “multi-output”
The resolved structure of one sample’s target.
- annotation_type“single-annotator” or “multi-annotator”
Whether observations come from one or multiple annotators.
- classestuple or None
The normalized immutable class vocabulary for classification, or None for regression. Single-output classification stores one tuple; multi-label classification stores one binary tuple per label output.
Methods
Attributes