TargetSpec#

class skactiveml.utils.TargetSpec(task: str, target_type: str, annotation_type: str, classes: tuple | None)[source]#

Bases: object

Immutable 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

TargetSpec.task: str#
TargetSpec.target_type: str#
TargetSpec.annotation_type: str#
TargetSpec.classes: tuple | None#