Zurück zu den Modellen
Transformer

RandomSamplesAugmenter

Draw random samples from time series.

transform takes a time series \(X={x_1, x_2,..., x_m}\) with \(m\) elements and returns \(X_t={x_i, x_{i+1},..., x_n}\), where \({x_i, x_{i+1},..., x_n}\) are \(n`=``n`\) random samples drawn from \(X\) (with or without_replacement).

Schnellstart

python
from sktime.transformations.augmenter import RandomSamplesAugmenter

estimator = RandomSamplesAugmenter(n=1.0, without_replacement=True, random_state=42)

Tags

Fähigkeiten

  • Multivariat
  • Reihen ungleicher Länge
  • 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(5)

n: int or float, optional (default = 1.0)

To specify an exact number of samples to draw, set n to an int value. Number of samples to draw. To specify the returned samples as a proportion of the given times series set n to a float value \(n \in [0, 1]\). By default, the same number of samples is returned as given by the input time series.

without_replacement: bool, optional (default = True)

Whether to draw without replacement. If True, every sample of the input times series X will appear at most once in Xt.

random_state: None or int or ``np.random.RandomState`` instance, optional

“If int or RandomState, use it for drawing the random variates. If None, rely on self.random_state. Default is None.” [1]

References and Footnotes