Skip to content

Commit 9ce0093

Browse files
committed
merge and move
1 parent 4223d94 commit 9ce0093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/ml/fpm/FPGrowth.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ class FPGrowthModel private[ml] (
241241
if (items != null) {
242242
val itemset = items.toSet
243243
brRules.value.filter(_._1.forall(itemset.contains))
244-
.flatMap(_._2.filter(!itemset.contains(_)))
244+
.flatMap(_._2.filter(!itemset.contains(_))).distinct
245245
} else {
246246
Seq.empty
247-
}.distinct }, dt)
247+
}}, dt)
248248
dataset.withColumn($(predictionCol), predictUDF(col($(featuresCol))))
249249
}
250250

0 commit comments

Comments
 (0)