In the previous chapter, we reviewed the key Java libraries for machine learning and what they bring to the table. In this chapter, we will finally get our hands dirty. We will take a closer look at the basic machine learning tasks such as classification, regression, and clustering. Each of the topics will introduce basic algorithms for classification, regression, and clustering. The example datasets will be small, simple, and easy to understand.
The following is the list of topics that will be covered in this chapter:
Download the latest version of Weka 3.6 from http://www.cs.waikato.ac.nz/ml/weka/downloading.html.
There are multiple download options available. We'll want to use Weka as a library in our source code, so make sure you skip the self-extracting executables and pick the ZIP archive as shown at the following image. Unzip the archive and locate weka.jar
within the extracted archive:
We'll use the Eclipse IDE to show examples, as follows:
weka.jar
file.That's it, we are ready to implement the basic machine learning techniques!