In this section, we will implement our own baseline model by following the approach that the KDD Cup organizers took. However, before we get to the model, let's first implement the evaluation engine that will return the AUC on all three problems.
Basic modeling
Evaluating models
Now, let's take a closer look at the evaluation function. The evaluation function accepts an initialized model, cross-validates the model on all three problems, and reports the results as an area under the ROC curve (AUC), as follows:
public static double[] evaluate(Classifier model)
throws Exception { double results[] = new double[4]; String[] labelFiles = new String[]{ "churn", "appetency", "upselling...