Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating recommendations for single users without leveraging user identity features #708

Open
ninahua opened this issue Apr 3, 2024 · 0 comments

Comments

@ninahua
Copy link

ninahua commented Apr 3, 2024

Hello,

I am creating recommendations for a single user with a model that was trained with user features but without user identity features (i.e. have set user_identity_features = False when creating the Dataset class). However, I encountered a shape issue when the method _construct_feature_matrices is called in the predict method. I noticed that the mismatch in shape was caused by this line (Line 851) in the predict method:
n_users = user_ids.max() + 1

From what I can understand, user_ids is an array as long as the number of items but every element is the index value of a user (if a single user id is provided). However, shouldn't it be the number of users if user_features is provided?

Thanks ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant