-
Notifications
You must be signed in to change notification settings - Fork 143
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
How to see Affinity/score for each recommendations ? #607
Comments
@rnyak Im trying to build sequential model on my synthetic data using transformer4rec. so im trying to build an end-end model. post the above question im trying get to know how to map the recommendations back to original categorical values. ? session_id back to its original catgrorical values. ? |
For the original item_id and encoded item_id mappings you can use the Please see this ticket for an example: #359. you can read the discussions there. basically if you do that
you will get your encoded item_id column and original ids in the same cudf dataframe. then you should just do the mapping via a simple pandas or cudf function you can write. Btw, are you using |
Thanks for the code @rnyak
the prediction.predictions has array of length 13856. why is this difference (passing this after trimming the users with 1 interactions) ? please correct me if my understanding is wrong. |
you are not going to generate predictions based on number of sessions, the predictions are generated based on your predictions is a 2-dimentional array. first dimension shows the number of rows in your test set that you are doing predictions on, and second dimension shows your unique item catalog +1 . For a given session (meaning each row in your transformed test set) you are getting scores for the number of unique items in your train set +1 .
|
@DilipKumar3 I am closing this ticket due to low activity. if you have further question, please reopen the ticket. |
❓ Questions & Help
I would like to see Affinity score for each recommendations after predictions ?. how can i view that in a tabular form ?
Details
The text was updated successfully, but these errors were encountered: