snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 797 forks source link

node2vec is not deterministic, i.e. multiple runs will lead to different embeddings #178

Open antonkratz opened 4 years ago

antonkratz commented 4 years ago

node2vec is not deterministic, i.e. multiple runs will lead to different embeddings.

I am working with to very similar, but not identical graphs. If I compare their embeddings, it is not clear which changes are caused by the graphs being different, or simply by having done two different runs of embeddings.

Can this be somehow adressed?

Would setting the random seed to a fixed value address this?

If yes, can the random seed be set to a fixed value?

AmenRa commented 4 years ago

I have the same problem.

@antonkratz Did you end up finding a solution?

maxaalexeeva commented 4 years ago

I am looking for an answer for this as well.

maxaalexeeva commented 4 years ago

@antonkratz @AmenRa, we addressed this in a fork, and there's an open pull request.