Skip to main content

Step.to_state()

Serialize this step’s fields to a diffable, JSON-safe dict.

Usage

Source

Step.to_state()

Every hyperparameter and learned statistic already lives as a plain instance attribute, so the default encodes self.__dict__ through the shared value codec – no per-step boilerplate. The step class itself is recorded separately (by qualified name) by to_dict.