bartz.npzΒΆ

Register custom classes for npz archives.

bartz.Bart.save_npz saves the whole model, which may contain instances of user-defined classes, e.g., a custom MCMC callback. Register those classes with serializable.

serializable(cls)

Register a dataclass to allow its instances in npz archives.