1 utils.stages

utils.stages

Shared string enums for training-stage and schema-facing dispatch.

This module exports ValueStrEnum and the canonical Stage values used by configs, loggers, and persisted records. It owns stable string serialization and typed comparison only; experiment loops own stage transitions and storage schemas own compatibility/versioning policy.

String values remain stable across configuration, logging, and persisted metadata boundaries while enum members provide typed comparisons in Python.

1.1 Classes

Name Description
Stage Stages of the training lifecycle.
ValueStrEnum StrEnum variant whose string form is always its underlying value.

1.1.1 Stage

utils.stages.Stage()

Stages of the training lifecycle.

1.1.1.1 Members

TRAIN: “train” VAL: “val” TEST: “test”

1.1.1.2 Methods

Name Description
from_str Map strings (e.g. “fit”, “validate”) back to Stage members.
1.1.1.2.1 from_str
utils.stages.Stage.from_str(value)

Map strings (e.g. “fit”, “validate”) back to Stage members.

1.1.2 ValueStrEnum

utils.stages.ValueStrEnum()

StrEnum variant whose string form is always its underlying value.

Back to top