Training an online logistic regression model using Apache Mahout

In this recipe, we will use Apache Mahout to train an online logistic regression model using Apache Mahout Java library.

Getting ready

  1. In Eclipse, create a new Maven project. The author had Eclipse Mars set up. To do so, go to File. Then select New and Other...:

    Getting ready

  2. Then, expand Maven from the wizard and select Maven Project. Click on Next until you reach the window where Eclipse prompts you to provide an Artifact Id. Type in mahout as Artifact Id, and the grayed out Finish button will become visible. Click on Finish. This will create a Maven project for you named mahout:

  3. Double-click ...

Get Java Data Science Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.