Back to models
Transformer

ExponentTransformer

Apply element-wise exponentiation transformation to a time series.

Quickstart

python
from sktime.transformations.exponent import ExponentTransformer

estimator = ExponentTransformer(power=0.5, offset='auto')

Parameters(2)

powerint or float, default=0.5
The power to raise the input timeseries to.
offset“auto”, int or float, default=”auto”

Offset to be added to the input timeseries prior to raising the timeseries to the given power. If “auto” the series is checked to determine if it contains negative values. If negative values are found then the offset will be equal to the absolute value of the most negative value. If not negative values are present the offset is set to zero. If an integer or float value is supplied it will be used as the offset.

Examples

>>> from sktime.transformations.exponent import ExponentTransformer
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> transformer = ExponentTransformer ()
>>> y_transform = transformer. fit_transform (y)