Task#

class sdm.Task(value)#

Bases: StrEnum

The prediction task type.

A task type describes the kind of target a model predicts. Possible values are:

classification#

Binary, multi-class, or multi-label classification.

regression#

Continuous numerical prediction.

classmethod from_stype(stype: Stype | str) → Task#

The prediction task associated with a target semantic type.

Parameters:

stype (Stype | str) – The target semantic type.

Return type:

Task

property stype: Stype#

The semantic type associated with a prediction task.