Zurück zu den Modellen
Transformer

LogTransformer

Natural logarithm transformation.

The Natural logarithm transformation can be used to make the data more normally distributed and stabilize its variance.

Transforms each data point x to log(scale *(x+offset))

Schnellstart

python
from sktime.transformations.boxcox import LogTransformer

estimator = LogTransformer(offset=0, scale=1)

Parameter(2)

offsetfloat, default = 0
Additive constant applied to all the data.
scalefloat, default = 1
Multiplicative scaling constant applied to all the data.

Beispiele

>>> from sktime.transformations.boxcox import LogTransformer
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> transformer = LogTransformer ()
>>> y_hat = transformer. fit_transform (y)