Closed jacobmalmberg closed 2 years ago
Thanks for the heads up! The issue is in saving models where the .fit method hasn't been called yet. This meant the user_factors and item_factors members were None - which couldn't be loaded back by np.load without using pickle.
I have a fix in https://github.com/benfred/implicit/pull/577
As the title says, cannot load an AlternatingLeastSquares model. Error message:
To recreate:
Workaround is to set
allow_pickle = True
in https://github.com/benfred/implicit/blob/f9050ae6340fbd549cf915dbf6e96a2ed713bac0/implicit/cpu/als.py#L444Python version: 3.7, 3.9 Implicit version: https://github.com/benfred/implicit.git@f9050ae6340fbd549cf915dbf6e96a2ed713bac0