Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of dimensions of param "k" changes if the input timeseries is single-valued #2612

Open
felipeangelimvieira opened this issue Aug 18, 2024 · 0 comments

Comments

@felipeangelimvieira
Copy link

When using Prophet with sktime, it was detected that the parameter k has a single dimension when the timeseries is constant, otherwise has two dimensions, which could be an unexpected behaviour.

Code to reproduce:

import pandas as pd
from sktime.forecasting.fbprophet import Prophet 

y  = pd.DataFrame(index=pd.period_range(start="2022-01", periods=18, freq="Q"),
             data={"value": 0})
# By removing the comment from the line below
# the error disappears
#y.iloc[-1] = 1

forecaster = Prophet(freq="Q").fit(y)
forecaster.get_fitted_params()

Related issue sktime/sktime#6982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant