gamboviol / bpr

Bayesian Personalized Ranking
212 stars 87 forks source link

BPR optimization criteria #5

Open lpeska opened 8 years ago

lpeska commented 8 years ago

Hi!

Thanks for sharing the code! I have a question regarding to line 79 file bpr.py : z = 1.0/(1.0+exp(x))

According to the original BPR paper, it seems to me that there should be something like z = exp(-x)/(1.0+exp(-x))

Am I missing something? Or are those equations proportionally equal? Thanks, Ladislav

leihao612 commented 7 years ago

The two equations are equal.