This chapter presents some of the main algorithms that have been developed in recent years to classify data: decision trees, ID3, Naïve Bayes, SVM, logistic regression, and k-NN. We have shown how to implement some of these in Java, using the Weka and the Apache
Commons
Math
libraries.