Transformer
SqrtTransformer
Apply elementwise square root transformation to a time series.
Quickstart
python
from sktime.transformations.exponent import SqrtTransformer
estimator = SqrtTransformer(offset='auto')Parameters(1)
- 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 SqrtTransformer
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> transformer = SqrtTransformer ()
>>> y_transform = transformer. fit_transform (y)