Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码逻辑的疑问 #39

Closed
miss1997yuan opened this issue Jul 2, 2020 · 0 comments
Closed

代码逻辑的疑问 #39

miss1997yuan opened this issue Jul 2, 2020 · 0 comments

Comments

@miss1997yuan
Copy link

miss1997yuan commented Jul 2, 2020

if not self.use_rejection_sampling:
alias_edges = {}
for edge in G.edges():
alias_edges[edge] = self.get_alias_edge(edge[0], edge[1])
self.alias_edges = alias_edges
这是walk.py里面根据前一个节点t和当前节点v动态计算概率的代码,但为什么要放在if not self.use_rejection_sampling:这个条件下,不用负采样也应该有这个计算,然后更新alias_edges吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant