SaveEnsembleMixin

class SaveEnsembleMixin[source]

Bases: etna.core.mixins.SaveMixin

Implementation of AbstractSaveable abstract class for ensemble pipelines.

It saves object to the zip archive with 3 entities:

  • metadata.json: contains library version and class name.

  • object.pkl: pickled without pipelines and ts.

  • pipelines: folder with saved pipelines.

Inherited-members

Methods

load(path[, ts])

Load an object.

save(path)

Save the object.

Attributes

pipelines

ts

classmethod load(path: pathlib.Path, ts: Optional[etna.datasets.tsdataset.TSDataset] = None) typing_extensions.Self[source]

Load an object.

Warning

This method uses dill module which is not secure. It is possible to construct malicious data which will execute arbitrary code during loading. Never load data that could have come from an untrusted source, or that could have been tampered with.

Parameters
Returns

Loaded object.

Return type

typing_extensions.Self

save(path: pathlib.Path)[source]

Save the object.

Parameters

path (pathlib.Path) – Path to save object to.