Book Image

Learning Apache Mahout

Book Image

Learning Apache Mahout

Overview of this book

Table of Contents (17 chapters)
Learning Apache Mahout
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Introduction to Mahout
9
Case Study – Churn Analytics and Customer Segmentation
Index

Frequent pattern mining with Mahout


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.

Extending the command line of 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...