Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidki31 committed Nov 15, 2018
1 parent 2e3b089 commit 5c4949d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ class PrefixSpan private (
val freqSequences = results.map { case (seq: Array[Int], count: Long) =>
new FreqSequence(toPublicRepr(seq), count)
}
// Cache the final RDD to the same storage level as input
freqSequences.persist(data.getStorageLevel)
dataInternalRepr.unpersist(false)

new PrefixSpanModel(freqSequences)
}

Expand Down

0 comments on commit 5c4949d

Please sign in to comment.