ml-100k Data-set output embedding corresponding problem #981
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@slightlyLLL Hello, RecBole will add Note that for Knowledge-based models, we add one more relation called U-I Relation. It describes the history interactions which will be used in Therefore, if you want to get the embeddings of users and items and save them, just skip the first embedding. Thanks for your attention to RecBole! |
Beta Was this translation helpful? Give feedback.
@slightlyLLL Hello, RecBole will add
[PAD]
for all the token like fields. Thus after remapping ID, 0 will be reserved for[PAD]
, which makes the result ofDataset.item_num
andDataset.user_num
more than the actual number.Note that for Knowledge-based models, we add one more relation called U-I Relation. It describes the history interactions which will be used in
recbole.data.dataset.kg_dataset.KnowledgeBasedDataset.ckg_graph()
. Thus the result ofKGDataset.relation_num
is two more than the actual number of relations.Therefore, if you want to get the embeddings of users and items and save them, just skip the first embedding. Thanks for your attention to RecBole!