Slackbot
12/13/2023, 2:39 PMJosé Morales
12/13/2023, 5:15 PMJosé Morales
12/13/2023, 5:30 PMfcst = DistributedMLForecast(...)
fcst.fit(...)
del fcst.engine
with open('fcst.pkl', 'wb') as f:
cloudpickle.dump(fcst, f)
You'd need to attach a client when loading it back, e.g.
with open('fcst.pkl', 'rb') as f:
fcst = cloudpickle.load(f)
fcst.engine = Client(...)
Francisco Ospina
12/14/2023, 1:27 PMKevin R. Chen
12/18/2023, 2:48 PM