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;)

Reply via email to