tangjianpku / LINE

LINE: Large-scale information network embedding
1.05k stars 408 forks source link

Question about the update method #23

Closed zhzou2020 closed 6 years ago

zhzou2020 commented 6 years ago

For u, the gradient should be (1-sigmoid(uv))v when the label is 1, (sigmoid(-uv) - 1)v when the label is 0.

But in the update method, the gradient becomes (1-sigmoid(uv))v when the label is 1, -sigmoid(uv)v when the label is 0.

Is there any error in my calculation? Or this is a bug of the code?