O'Reilly logo

Machine Learning in Java by Boštjan Kaluža

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image classification

In this section, we will discuss how to implement some of the neural network structures with the deeplearning4j library. Let's start.

Deeplearning4j

As we discussed in Chapter 2, Java Libraries and Platforms for Machine Learning, deeplearning4j is an open source, distributed deep learning project in Java and Scala. Deeplearning4j relies on Spark and Hadoop for MapReduce, trains models in parallel, and iteratively averages the parameters they produce in a central model. A detailed library summary is presented in Chapter 2, Java Libraries and Platforms for Machine Learning.

Getting DL4J

The most convenient way to get deeplearning4j is through the Maven repository:

  1. Start a new Eclipse project and pick Maven Project, as shown in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required