node2vec icon indicating copy to clipboard operation
node2vec copied to clipboard

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

Open aijianiula0601 opened this issue 7 years ago • 1 comments

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
  }

aijianiula0601 avatar Nov 29 '17 07:11 aijianiula0601

what wrong happends after added?

shboy avatar Oct 21 '20 02:10 shboy