Skip to Content
Machine Learning in Java - Second Edition
book

Machine Learning in Java - Second Edition

by AshishSingh Bhatia, Bostjan Kaluza
November 2018
Intermediate to advanced
300 pages
7h 42m
English
Packt Publishing
Content preview from Machine Learning in Java - Second Edition

Classification using Encog

In the previous section, you saw how to use a Weka library for classification. In this section, we will quickly look at how the same can be achieved by using the Encog library. Encog requires us to build a model to do the classification. Download the Encog library from https://github.com/encog/encog-java-core/releases. Once downloaded, add the .jar file in the Eclipse project, as explained at the beginning of the chapter.

For this example, we will use the iris dataset, which is available in .csv format; it can be downloaded from https://archive.ics.uci.edu/ml/datasets/Iris. From the download path, copy the iris.data.csv file into your data directory. This file contains the data of 150 different flowers. It contains ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Java Machine Learning

Mastering Java Machine Learning

Uday Kamath, Krishna Choppella
Java: Data Science Made Easy

Java: Data Science Made Easy

Richard M. Reese, Jennifer L. Reese, Alexey Grigorev

Publisher Resources

ISBN: 9781788474399Supplemental Content