Transformer
MatrixProfileTransformer
Calculate the matrix profile of a time series.
Takes as input a single time series dataset and returns the matrix profile for that time series dataset, as a time series. The matrix profile is a vector that stores the z-normalized Euclidean distance between any subsequence within a time series and its nearest neighbor.
For more information on the matrix profile, see stumpy’s tutorial
Schnellstart
python
from sktime.transformations.matrix_profile import MatrixProfileTransformer
estimator = MatrixProfileTransformer(window_length=3)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
- Nein
- Benötigt Xrequires_X
- Ja
- Benötigt yrequires_y
- Nein
- X und y brauchen denselben IndexX-y-must-have-same-index
- Nein
Parameter(1)
- window_lengthint
Beispiele
>>> from sktime.transformations.matrix_profile import MatrixProfileTransformer
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> transformer = MatrixProfileTransformer ()
>>> y_hat = transformer. fit_transform (y)