Forecaster
DontUpdate
Turns off updates, i.e., ensures that forecaster is only fit and never updated.
This is useful when comparing forecasters that update with forecasters that don’t, in a set-up where all forecasters’ update has update_params=True set.
Shorthand for UpdateEvery with default values.
Schnellstart
python
from sktime.forecasting.stream import DontUpdate
estimator = DontUpdate(forecaster)Tags
Fähigkeiten
- Kategoriale Merkmale
- In-Sample-Vorhersagen: Unterstützt
- In-Sample-Prognoseintervalle: Unterstützt
- Exogene Variablen
- Prognoseintervalle: Nicht unterstützt
- Fehlende Werte: Nicht unterstützt
- Multivariat: Nicht unterstützt
Eigenschaften
- Prognosehorizont beim Fit nötigrequires-fh-in-fit
- Nein
- X und y brauchen denselben IndexX-y-must-have-same-index
- Ja
Parameter(1)
- forecasteran sktime forecaster
the forecaster for which
updateis called withupdate_params=Falsealways, i.e., never updates.
Beispiele
>>> from sktime.forecasting.trend import TrendForecaster
>>> from sktime.forecasting.stream import DontUpdate
>>> from sktime.datasets import load_airline
>>> y = load_airline ()
>>> y0 = y. iloc [: - 20 ]
>>> y1 = y. iloc [- 20: - 10 ]
>>> y2 = y. iloc [- 10:]
>>> inner_forecaster = TrendForecaster ()
>>> forecaster = DontUpdate (inner_forecaster)
>>> forecaster. fit (y0, fh = [1, 2, 3 ]) DontUpdate(
... )
>>> # predict etc could be called here
>>> # e.g., forecaster.predict()
>>> # first update, calls update with update_params=False
>>> forecaster. update (y1) DontUpdate(
... )
>>> # second update, calls update with update_params=False
>>> forecaster. update (y2) DontUpdate(
... )