RUCAIBox / RecBole-GNN

Efficient and extensible GNNs enhanced recommender library based on RecBole.
MIT License
167 stars 37 forks source link

[❓Question] 请问为什么 `sequential_base.yaml` 中 `train_neg_sample_args` 要设置为 `None`? #70

Closed ChenglongMa closed 11 months ago

ChenglongMa commented 11 months ago

请问在配置文件 recbole_gnn/properties/quick_start_config/social_base.yaml 中,为什么要将 train_neg_sample_args 设置为 None?

https://github.com/RUCAIBox/RecBole-GNN/blob/77d76b9e19436220b32fe61af95ffd95f17c1db7/recbole_gnn/properties/quick_start_config/sequential_base.yaml#L1

这样设置有什么特殊考虑吗?Sequential model不支持负采样吗?

谢谢!

hyp1231 commented 11 months ago

您好,sequential model 默认是使用 Cross Entropy loss 优化,并以全部其他商品作为负例的,配置文件中这样写即是代表使用全部商品作为负例优化。但是您也可以手动设置这个参数,以只采样固定个数 item 作为负例。

ChenglongMa commented 11 months ago

@hyp1231 好的,多谢解答!