Skip to content

Commit

Permalink
Fix failing test due to reverse orderering
Browse files Browse the repository at this point in the history
  • Loading branch information
Feynman Liang committed Jun 25, 2015
1 parent f04bd50 commit 34ef8f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class FPGrowth private (
.flatMap { case (part, tree) =>
tree.extract(minCount, x => partitioner.getPartition(x) == part)
}.map { case (ranks, count) =>
new FreqItemset(ranks.map(i => freqItems(i)).toArray, count, ordered)
new FreqItemset(ranks.map(i => freqItems(i)).reverse.toArray, count, ordered)
}
}

Expand Down

0 comments on commit 34ef8f2

Please sign in to comment.