_OneSegmentTrendTransform

class _OneSegmentTrendTransform(in_column: str, out_column: str, change_points_model: etna.transforms.decomposition.change_points_based.change_points_models.base.BaseChangePointsModelAdapter, per_interval_model: etna.transforms.decomposition.change_points_based.per_interval_models.base.PerIntervalModel)[source]

Bases: etna.transforms.decomposition.change_points_based.detrend._OneSegmentChangePointsTrendTransform

_OneSegmentTrendTransform adds trend as a feature.

Init _OneSegmentTrendTransform.

Parameters
Inherited-members

Methods

fit(df)

Fit transform.

fit_transform(df)

Fit and transform Dataframe.

inverse_transform(df)

Split df to intervals of stable trend according to previous change point detection and add trend to each one.

set_params(**params)

Return new object instance with modified parameters.

to_dict()

Collect all information about etna object in dict.

transform(df)

Transform data from df.