Skip to content

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

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions