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
Hi, have you planned a transform interface? Would be great if one can infer the item matrix (given latent factors/user matrix) or vice versa. I am not sure how to handle the item-bias terms, but I guess they are also optimized (or assumed to be zero?!).
The text was updated successfully, but these errors were encountered:
There is a bit of discussion about this happening here #467 - but in the last commit there we've added support for calculating the item matrix given a fixed user matrix (and vice versa).
As an example given a user_items sparse matrix containing interactions, and a existing_item_factors dense matrix containing precalculated item factors:
# Train an ALS model with pre-existing item factors, but calculating user factorsmodel=AlternatingLeastSquares()
model.item_factors=existing_item_factorsuserids=np.arange(user_items.shape[0])
model.partial_fit_users(userids, user_items)
Going to close this - but please let me know if this is what you're looking for here
Hi, have you planned a transform interface? Would be great if one can infer the item matrix (given latent factors/user matrix) or vice versa. I am not sure how to handle the item-bias terms, but I guess they are also optimized (or assumed to be zero?!).
The text was updated successfully, but these errors were encountered: