sl
01/08/2025, 9:38 PMudf_variable1 = [1,2,3]
udf_variable2 = df
fcst = MLForecast(
models={
'avg': lgb.LGBMRegressor(**lgb_params),
},
)
fcst.fit(df)
fcst.a = udf_variable1
fcst.b = udf_variable2
fcst.save(path='example_path')
###load
fcst = MLForecast.load(path='example_path')
fcst.a == [1,2,3] ### should be true
I'm able to save the model but I got error when loading:
993 try:
994 with fsspec.open(f"{path}/intervals.pkl", "rb") as f:
--> 995 intervals = cloudpickle.load(f)
996 except FileNotFoundError:
997 intervals = None
EOFError: Ran out of input
José Morales
01/09/2025, 3:16 PM