Naren Castellon
06/28/2023, 5:09 AMI am making a Machine Learning model, but it turns out that I have the following problem when I make the predictions with the predict method by adding the level(confidence interval) parameter, it gives me an error,
mlf.fit(df1, id_col='unique_id', time_col='ds', target_col='y',prediction_intervals=PredictionIntervals(n_windows=5, window_size=18))
Kevin Kho
06/28/2023, 5:23 AMfrom statsforecast.core import StatsForecast
from statsforecast.models import (
AutoARIMA,
AutoETS,
)
from statsforecast.utils import generate_series, ConformalIntervals
series = generate_series(5)
sf = StatsForecast(
models=[AutoETS(season_length=7)],
freq='D',
)
# sf.forecast(df=series, h=horizon).head()
sf.fit(series, prediction_intervals=ConformalIntervals(n_windows=2, h=10))
sf.predict(18, level=[20,30])
Naren Castellon
06/28/2023, 9:35 AMKevin Kho
06/28/2023, 4:02 PMMax (Nixtla)
06/29/2023, 3:54 PMJosé Morales
06/29/2023, 3:55 PMMax (Nixtla)
06/29/2023, 3:57 PMmarah othman
07/03/2023, 11:51 PMJosé Morales
07/04/2023, 12:41 AMmarah othman
07/04/2023, 7:55 AMJosé Morales
07/04/2023, 8:04 PMmarah othman
07/05/2023, 9:34 AMJosé Morales
07/05/2023, 4:30 PMmarah othman
07/05/2023, 6:10 PMJosé Morales
07/05/2023, 6:24 PMmarah othman
07/05/2023, 6:26 PMJosé Morales
07/05/2023, 6:33 PMmarah othman
07/05/2023, 6:34 PMJosé Morales
07/05/2023, 6:47 PMmarah othman
07/05/2023, 6:48 PMJosé Morales
07/05/2023, 7:03 PM