alibaba / euler

A distributed graph deep learning framework.
Apache License 2.0
2.89k stars 559 forks source link

UnsupervisedModel的负采样方法是不是有些不妥? #257

Closed lixusign closed 4 years ago

lixusign commented 4 years ago

当前是这么实现的,如果图比较稠密,感觉和pos碰撞概率比较大,不知道作者怎么看? negs = euler_ops.sample_node(batch_size * self.num_negs, self.node_type)

alinamimi commented 4 years ago

这样做是效率比较高的方式,大部分情况对效果没有影响。如果不想和pos有交集,可以和pos进行一次过滤

lixusign commented 4 years ago

嗯嗯,明白了 谢谢