GraphEmbedding icon indicating copy to clipboard operation
GraphEmbedding copied to clipboard

LINE的negative samples

Open Salon-sai opened this issue 5 years ago • 2 comments

如果代码没有理解错的话,应该这部分是负采样。 https://github.com/shenweichen/GraphEmbedding/blob/master/ge/models/line.py#L170-L173 但这里的负采样没有剔除相邻节点和自身节点

Salon-sai avatar Aug 01 '19 11:08 Salon-sai

我也觉得这里没有剔除相邻节点和自身节点

chenkkkk avatar Aug 07 '19 14:08 chenkkkk

@Salon-sai @chenkkkk 原论文中的负采样是直接从一个正比于顶点出度的3/4方的噪声分布中采样目标点的,这个你们可以参考原作者本人的实现

shenweichen avatar Aug 10 '19 12:08 shenweichen