So far, we discussed the important concepts needed to understand the frequent pattern mining algorithm and also discussed the construction of a FP Tree with examples. Let's now discuss how to implement frequent pattern mining (FPM) with Mahout.
Frequent pattern mining is not currently supported through the Mahout command line. We will learn how to tweak Mahout to support frequent pattern mining from the command line. The approach demonstrated here can be used to support user-created classes from the Mahout command line.
Looking at the source code of the tool you are working with is always a great idea. This gives a strong understanding of the basics and augments the learning process. We will use the Mahout source code imported into Eclipse. Let's open the file MahoutDriver.java
found in the folder core/src/main/java/org/apache/mahout/driver
under the Mahout directory or from the package org.apache.mahout.driver
in Eclipse...