You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a quick investigation, it appears that "linear" is not a supported value for the trend argument of FTT.fit(). If you replace it by "poly" or "exp", the save() method works just fine. For your example more specifically, trend="poly"trend_poly_degree=1 should result in a linear trend function.
The error seems to be linked to the trend_function being lambda x : 0 when trend is anything but "poly" or "exp", not sure of how to solve it atm...
Describe the bug
save() method does not work after fit() method in some cases.
AttributeError: Can't pickle local object 'FFT.fit.<locals>.<lambda>'
To Reproduce
Expected behavior
The model should be saved properly as test.pht
System (please complete the following information):
Additional context
In another code a co-worker got a similar error :
AttributeError: Can't pickle local object 'EvaluationLoop.advance.<locals>.batch_to_device'
It was trying model.save() method after fitting a TFTModel. I couldn't reproduce the error on my machine though ...
The text was updated successfully, but these errors were encountered: