-
Notifications
You must be signed in to change notification settings - Fork 141
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
[ASK] How to rank given items? #361
Comments
Hi, you can specify the list of items to rank in the |
When I run,
it results in
. |
Thanks for raising this issue. The current assumption with '''item_indices''' is that the list of item indices are continuous (no missing indices) from 0 to len(item_indices). This assumption is restrictive and it would not allow you to solve your problem. We are working on improving it. In the mean time you can rank all items and post-process the ranked list to keep only the items of interest. Btw Cornac uses its own indices, please take a look at the Datasets documentation if you want to map back to original ids or vice versa |
@wahyudierwin it seems that your training data only has 4 items. Could you share your code? |
Sorry for the late reply.
@saghiles thanks for your suggestion, probably I will do as you suggest. @tqtg I'm sure that the training data has more than 4 items. This is the code, and I'm afraid I cannot share the data because of confidentiality.
|
@wahyudierwin thank you for providing the details. We have now fixed the |
@tqtg very glad to hear that! I will give it a try as soon as possible. Thank you very much! |
Description
Hi, hope that you are doing well.
I want to ask about ranking. Suppose that there are 100 items in the training set and we want to rank items
0
,12
,23
, and79
. How can I do that?Thank you.
Other Comments
The text was updated successfully, but these errors were encountered: