#3291·sktime

[BUG] Update Predict Only Works with the mtypes pd.Series and pd.DataFrames

Author: benHeidCreated Aug 19, 2022Updated Sep 18, 2026
Labelsbugmodule:forecasting

Describe the bug UpdatePredict only works with the mtypes pd.Series and pd.DataFrames even if the documentation states that also numpy is supported However, if numpy is selected an error is raised. Even if all are from the scitype Series.

To Reproduce

python
from sktime.forecasting.ets import AutoETS
import numpy as np
ets = AutoETS()
ets.fit(np.random.random(100))
ets.update_predict(np.random.random(10))```

Expected behavior I would expect that update_predict works with every mtype that implements the series scitype. If this is not possible, I would suggest that the documentation of update_predict in forecasting._base is updated.

Additional context I suppose that it would work if in line 2210 of forecasting._base the instance is checked against a list of all scitypes instead of only checked against the pd.Series and pd.DataFrames.

If it should also work with np.arrays, I can take a look if it is possible to check the against all mtypes.

This issue affects also the issues which proposes to add new mtypes. E.g., #2655

Versions

machine: Windows-10-10.0.18362-SP0 Python dependencies: pip: 22.0.3 setuptools: 60.8.2 sklearn: 1.0.2 sktime: 0.13.1 statsmodels: 0.13.2 numpy: 1.21.6 scipy: 1.7.3 pandas: 1.4.1 matplotlib: 3.5.1 joblib: 1.1.0 numba: 0.55.1 pmdarima: 1.8.5 tsfresh: None