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()
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:
Related issue sktime/sktime#6982