chengkai-liu / Mamba4Rec

[RelKD'24] Mamba4Rec: Towards Efficient Sequential Recommendation with Selective State Space Models
https://arxiv.org/abs/2403.03900
MIT License
74 stars 2 forks source link

Code #7

Closed hzau96yhz closed 4 months ago

hzau96yhz commented 4 months ago

Hi! Good work! What does the following line of code do?It seems that self.gather_indexes are not defined https://github.com/chengkai-liu/Mamba4Rec/blob/d4d1fd64389f55684dfd62515ced4663f92a7476/mamba4rec.py#L65

chengkai-liu commented 4 months ago

gather_indexes is a function is the class of SequentialRecommender. We import SequentialRecommender from RecBole: from recbole.model.abstract_recommender import SequentialRecommender.