MeanSegmentEncoderTransform¶
- class MeanSegmentEncoderTransform[source]¶
Bases:
etna.transforms.base.IrreversibleTransform
,etna.transforms.base.FutureMixin
Makes expanding mean target encoding of the segment. Creates column ‘segment_mean’.
- Inherited-members
Methods
fit
(ts)Fit the transform.
fit_transform
(ts)Fit and transform TSDataset.
Return the list with regressors created by the transform.
inverse_transform
(ts)Inverse transform TSDataset.
load
(path)Load an object.
params_to_tune
()Get grid for tuning hyperparameters.
save
(path)Save the object.
set_params
(**params)Return new object instance with modified parameters.
to_dict
()Collect all information about etna object in dict.
transform
(ts)Transform TSDataset inplace.
Attributes
idx