ThetaLinesTransformer
Decompose the original data into two or more Theta-lines.
Implementation of decomposition for Theta-method [1] as described in [2].
Overview: Input univariate series of length “n” and ThetaLinesTransformer modifies the local curvature of the time series using Theta-coefficient values passed through the parameter theta.
Each Theta-coefficient is applied directly to the second differences of the input series. The resulting transformed series (Theta-lines) are returned as a pd.DataFrame of shape len(input series) * len(theta).
Schnellstart
from sktime.transformations.theta import ThetaLinesTransformer
estimator = ThetaLinesTransformer(theta=(0, 2))Tags
Fähigkeiten
- Reihen ungleicher Länge
- Multivariat: Nicht unterstützt
- Inverse Transformation: Nicht unterstützt
- Fehlende Werte: Nicht unterstützt
- Entfernt fehlende Werte: Nicht unterstützt
- Gleicht Reihenlängen an: Nicht unterstützt
Eigenschaften
- Eingabetypscitype:transform-input
- Series
- Ausgabetypscitype:transform-output
- Series
- Label-Typscitype:transform-labels
- None
- Fit ist leerfit_is_empty
- Ja
- Behält den Zeitindextransform-returns-same-time-index
- Ja
- Benötigt Xrequires_X
- Ja
- Benötigt yrequires_y
- Nein
- X und y brauchen denselben IndexX-y-must-have-same-index
- Nein
Parameter(1)
- thetasequence of float, default=(0,2)
- Theta-coefficients to use in transformation.
Beispiele
>>> from sktime.transformations.theta import ThetaLinesTransformer
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> transformer = ThetaLinesTransformer ([0, 0.25, 0.5, 0.75 ])
>>> y_thetas = transformer. fit_transform (y)Referenzen
V.Assimakopoulos et al., “The theta model: a decomposition approach to forecasting”, International Journal of Forecasting, vol. 16, pp. 521-530, 2000.
E.Spiliotis et al., “Generalizing the Theta method for automatic forecasting “, European Journal of Operational Research, vol. 284, pp. 550-558, 2020.