You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Yarco Hayduk <ya...@gmail.com> on 2011/05/13 01:29:33 UTC
Parallel FP-Growth question
Hi,
in org.apache.mahout.fpm.pfpgrowth.fpgrowth.FPGrowth.treeAddCount(FPTree,
int[], long, long, long[])
676| if (attributeFrequency[attribute] < minSupport) {
return ret; // returns zero
}
You should actually throw an exception there, because if that check
succeeds, than myList is in an inconsistent state. It should _not_ contain
an infrequent item at that point
It would also make sense to add all items before the invalid (infrequent)
item to the tree (and return that count and not zero), but since your
TransactionIterator filters out the infrequent items, they should not appear
in myList anyway
HTH,
yarco;)