RUCAIBox / RecBole-CDR

This is a library built upon RecBole for cross-domain recommendation algorithms
MIT License
82 stars 12 forks source link

[🐛BUG] overlap user id #33

Closed Data-Designer closed 2 years ago

Data-Designer commented 2 years ago

Hi, I am confused about the user ID preprocessing process: For cross-domain recommendation (users partially overlap): Source user id : [1,2,3,4], target user id : [1,2,3,5], the id list is shared.

How could i run the conet.py. I am very confused about


            self.source_user_embedding.weight[self.overlapped_num_users: self.target_num_users].fill_(0)
            self.source_item_embedding.weight[self.overlapped_num_items: self.target_num_items].fill_(0)

            self.target_user_embedding.weight[self.target_num_users:].fill_(0)
            self.target_item_embedding.weight[self.target_num_items:].fill_(0)
Data-Designer commented 2 years ago

OK,I have already solved this problem. I wish the document more detail. Thanks!