tanatosuu / GDE

SIGIR 2022 Paper: Less is More: Reweighting Important Spectral Graph Features for Recommendation
31 stars 5 forks source link

:bug:Modify the error in the bpr loss function #2

Closed chenjiyan2001 closed 2 years ago

chenjiyan2001 commented 2 years ago

According to the definition of bpr loss function, here should be modified as: out=((final_user*final_pos).sum(1)-(final_user*final_nega).sum(1)).sigmoid(), otherwise, loss will be nan when using the bpr loss function