We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2eb14c commit 89bc368Copy full SHA for 89bc368
mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala
@@ -84,10 +84,10 @@ class PrefixSpan(
84
allPatterns
85
}
86
87
- private def getAbsoluteMinSupport(sequences: RDD[Array[Int]]): Int = {
+ private def getAbsoluteMinSupport(sequences: RDD[Array[Int]]): Int = {
88
val result = if (minSupport <= 0) {
89
0
90
- }else {
+ } else {
91
val count = sequences.count()
92
val support = if (minSupport <= 1) minSupport else 1
93
(support * count).toInt
0 commit comments