serialization#
Unified serialization infrastructure for pymc-marketing.
This module provides the TypeRegistry, Serializable protocol,
SerializableBaseModel, DeferredFactory, and DeserializationContext
that replace the scattered serialization patterns across MMM components.
Every serializable object produces a JSON-safe dict with a __type__ key
(fully-qualified class path). The TypeRegistry dispatches deserialization
from that key alone.
Classes
|
Serializable recipe for creating objects with non-serializable state. |
|
Runtime state passed to custom deserializers. |
|
Structural protocol for serializable objects. |
|
Base model that auto-implements Serializable for Pydantic BaseModel subclasses. |
Centralized registry for serializable types. |
Exceptions
|
Raised when serialization or deserialization fails. |