PerSegmentModel¶
- class PerSegmentModel(base_model: Any)[source]¶
Bases:
etna.models.base.PerSegmentBaseModel
,etna.models.base.ForecastAbstractModel
Class for holding specific models for per-segment prediction.
Init PerSegmentBaseModel.
- Parameters
base_model (Any) – Internal model which will be used to forecast segments, expected to have fit/predict interface
- Inherited-members
Methods
fit
(ts)Fit model.
forecast
(ts)Make predictions.
get_model
()Get internal models that are used inside etna class.
- forecast(ts: etna.datasets.tsdataset.TSDataset) etna.datasets.tsdataset.TSDataset [source]¶
Make predictions.
- Parameters
ts (etna.datasets.tsdataset.TSDataset) – Dataframe with features
- Returns
Dataset with predictions
- Return type