Using Predictive analytics on Bank Data using Mahout
In this recipe, we are going to take a look at how to use Mahout to generate a predictive model and validate how good this model is against some sample data. Here, we will be using the sample data collected by a bank during their marketing operations.
Getting ready
To perform this recipe, you should have a running Hadoop cluster as well as the latest version of Mahout installed on it.
How to do it...
In this recipe, we are going to use Logistic Regression in order to predict the occurrence of an event. It uses predictors from the given data in order to calculate the probability. The Mahout implementation uses the Stochastic Gradient Descent (SGD) algorithm for logistic regression. You can learn more about SGD for logistic regression at http://blog.trifork.com/2014/02/04/an-introduction-to-mahouts-logistic-regression-sgd-classifier/.
SGD is, by default, a sequential algorithm so we cannot run any parallel activities on it. Even though it is...