So now that you understand a little about the parameters and the model that we want to run, it's time to go ahead and train and inspect our network:
val dl = new DeepLearning(dlParams) val dlModel = dl.trainModel.get
The code created the DeepLearning model builder and launched it. By default, the launch of trainModel is asynchronous (that is, it never blocks, but returns a job), but it is possible to wait until the end of computation by calling the method get. You can also explore the job progress in UI or even explore the unfinished model by typing getJobs into the Flow UI (see Figure 18).