Regression using MOA

Using MOA for regression requires us to use the GUI. You can download the dataset from http://www.cs.waikato.ac.nz/~bernhard/halifax17/census.arff.gz.

The following steps show how to perform regression:

  1. Launch the MOA GUI by using the following command:
$ java -cp moa.jar -javaagent:sizeofag-1.0.4.jar moa.gui.GUI
  1. Select the Regression tab and click on Configure, as shown in the following screenshot:

  1. We will use the downloaded .arff file for regression. When we click on Configure in the preceding step, it will display the Configure task window, as shown in the following screenshot:

  1. In the stream option, click on Edit and select the ArffFileStream; select the .arff file that we downloaded, as shown in the following screenshot:

  1. In classIndex, specify -1, which sets the first attribute as the target. Click on OK in all pop-up windows and click on Run. It will take some time, as the census file has a large amount of data to process, as shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.136.90