[BUG] TBATS docstring example does not run
josebaezmedina opened this issue · comments
josebaezmedina commented
The example for TBATS from the documentation does not work.
from sktime.datasets import load_airline
from sktime.forecasting.tbats import TBATS
y = load_airline()
forecaster = TBATS(
use_box_cox=False,
use_trend=False,
use_damped_trend=False,
sp=12,
use_arma_errors=False,
n_jobs=1)
forecaster.fit(y)
y_pred = forecaster.predict(fh=[1,2,3])
Expected behavior
predictions from the time series
I am getting:
TypeError: _TbatsAdapter.init() got an unexpected keyword argument 'seasonal_periods'
Franz Király commented
Thanks for reporting.
Could you kindly list your package versions, as described in the "new issue" template?
I've also added a test with sp
parameter to see if something comes up there:
#6292
Franz Király commented
@josebaezmedina, the tests in #6292 seem to run with the example above.
Possibly it is an issue with incompatible package versions in your environment?
Would appreciate package versions.