sl
02/13/2025, 10:35 PMMLForecast.update
and it seems like all it does is update the stored ts. I'm wondering how does update even help in this case except I have RollingMean(window_size=3)
in the feature frame, which I assume it got calculated based on T+3 to T+5 I fed in for T+6, and so on. Could you please confirm I'm understanding correctly? I would really appreciate if you have any other insights about how to "smoothly connect" two forecast.sl
02/13/2025, 10:41 PMJosé Morales
02/13/2025, 11:12 PMsl
02/13/2025, 11:16 PMfcst1 = MLForecast(models = {'modelA':lgb.LGBMRegressor(**lgb_params)})
fcst2 = MLForecast(models = {'modelB':lgb.LGBMRegressor(**lgb_params)},
lag_transforms={
3: [RollingMean(window_size=3)],
},)
fcst1.fit(df1)
fcst2.fit(df2)#y in df1 and df2 are the same
pred = fcst1.predict(h=5, X_df=cov1)
fcst2.update(pred)
fcst2.predict(h=19, X_df=cov2)
José Morales
02/13/2025, 11:17 PMsl
02/13/2025, 11:18 PMsl
02/13/2025, 11:19 PMJosé Morales
02/13/2025, 11:21 PMsl
02/13/2025, 11:22 PMJosé Morales
02/13/2025, 11:23 PMsl
02/13/2025, 11:24 PMJosé Morales
02/13/2025, 11:25 PMsl
02/13/2025, 11:25 PMsl
02/13/2025, 11:25 PM