.link 文件在recbole框架中是如何使用的呢 #1348
Answered
by
Ethan-TZ
Kongxiangzhouye
asked this question in
Q&A
-
如题所示,之前跑过两个数据集的实验分别是book-crossing和ml-1m,他们的link文件其实无所谓,因为entity_id对应的item_id,但是在lastfm数据集中,这俩变得不一样了,所以我尝试去看了看recbole其他kg模型的实现,试图找到是如何使用.link文件。 |
Beta Was this translation helpful? Give feedback.
Answered by
Ethan-TZ
Jul 15, 2022
Replies: 1 comment 1 reply
-
@Kongxiangzhouye 您好,感谢您的关注! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kongxiangzhouye
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Kongxiangzhouye 您好,感谢您的关注!
RecBole框架中加载.link文件得到entity_id与item_id的对应关系,即变量item2entity与entity2item。而这两个变量的作用是将entity_id和item_id映射到同一internal id空间,其实现参考
_merge_item_and_entity
方法。