MulticlassOutcome

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

class MulticlassOutcome(column: str, classes: Tuple[Any, ...] | None = None)[source]

Bases: object

Endpoint with three or more mutually exclusive classes.

column

Column holding the class label.

Type:

str

classes

Optional declared class ORDER. Supplying it pins the column order of probability outputs and the row/column order of confusion matrices, so a class absent from one validation fold cannot shift the meaning of a column; None leaves the order to be derived from the observed labels.

Type:

Tuple[Any, …] | None

__post_init__() → None[source]

Validate the column name and the declared class order.

property columns: Tuple[str, ...]

Return the single label column.

__init__(column: str, classes: Tuple[Any, ...] | None = None) → None