Skip to main content

Module serialize

Module serialize 

Source
Expand description

Optional JSON serialization for fitted transformers (gated on the serde feature).

Leaf transformers derive Serialize/Deserialize; use save_json and load_json to persist fitted state. Pipeline and ColumnTransformer are also serializable via the TransformerKind enum wrapper.

Functionsยง

from_json
Deserialize a transformer from a JSON string.
load_json
Read a transformer from the JSON file at path.
save_json
Serialize a fitted transformer and write it to the file at path.
to_json
Serialize a fitted transformer to a pretty-printed JSON string.