RecBole icon indicating copy to clipboard operation
RecBole copied to clipboard

SASRec的实现问题

Open zhaijianyang opened this issue 1 year ago • 1 comments

你好,关于SASrec的实现,最后的输出是BxH,也就是只用了最后一个item计算loss吗,不应该是seq2seq吗? output = trm_output[-1] output = self.gather_indexes(output, item_seq_len - 1) return output # [B H]

zhaijianyang avatar Nov 22 '23 13:11 zhaijianyang

Thanks for your attention to RecBole! When calculating loss, sasrec only considers the prediction of the last item in the interaction sequence. You can construct subsequences of the original interaction sequences as additional training data to make it similar to seq2seq. Hope this could help you!

BoXiaohe avatar Jan 20 '24 14:01 BoXiaohe