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”

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. Specifications compare classes by value, so (0, 1) equals (0.0, 1.0).

Methods

Attributes

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