aditya-grover / node2vec

http://snap.stanford.edu/node2vec/
MIT License
2.6k stars 912 forks source link

The variable name as "randomWalk" in node2vec can not unpersist after second iter problem. #27

Open aijianiula0601 opened 6 years ago

aijianiula0601 commented 6 years ago

if add the code below:

================ randomWalk.unpersist(blocking = false)

================to:

  if (randomWalkPaths != null) {
    val prevRandomWalkPaths = randomWalkPaths
    randomWalkPaths = randomWalkPaths.union(randomWalk).cache()
    randomWalkPaths.first
    prevRandomWalkPaths.unpersist(blocking = false)

    randomWalk.unpersist(blocking = false)

  } else {
    randomWalkPaths = randomWalk
  }
shboy commented 3 years ago

what wrong happends after added?