8.1.1 The DL4J training UI

The DL4J framework provides a web user interface to visualize the current network status and progress of training in real time. It is used to understand how to tune a neural network. In this section, we are going to examine a use case with CNN training where only DL4J is involved. The next section will show the differences between when the training is done through both DL4J and Spark.

The first thing we need to do is add the following dependency to the project:

groupId = org.deeplearning4j artifactId = deeplearning4j-ui_2.11 version = 0.9.1

Then, we can start adding the necessary code.

Let's initialize the backend for the UI:

val uiServer = UIServer.getInstance()

Configure the information that is generated for the ...

Get Hands-On Deep Learning with Apache Spark now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.