Skip to Main Content
Java Deep Learning Projects
book

Java Deep Learning Projects

by Md. Rezaul Karim
June 2018
Intermediate to advanced content levelIntermediate to advanced
436 pages
10h 33m
English
Packt Publishing
Content preview from Java Deep Learning Projects

LSTM network construction

As stated earlier, I wrote a class called RecurrentNets.java to build an LSTM network. We create a MultilayerNetwork LSTM network that consists of an input layer, four LSTM layers, three dense layers, and an output layer. The input consists of sequences of genetic variants.

We use the BuildBuildLstmNetworks() method with two parameters—number of input for input layers and number of output for output layers, as shown here:

private static final int lstmLayer1Size = 128;private static final int lstmLayer2Size = 128;private static final int denseLayerSize = 32;private static final double dropoutRatio = 0.5;private static final int truncatedBPTTLength = 22;

Now, before we start creating and building the network, let's ...

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

Java Deep Learning Essentials

Java Deep Learning Essentials

Yusuke Sugomori
Machine Learning in Java - Second Edition

Machine Learning in Java - Second Edition

AshishSingh Bhatia, Bostjan Kaluza
Mastering Java Machine Learning

Mastering Java Machine Learning

Uday Kamath, Krishna Choppella

Publisher Resources

ISBN: 9781788997454Supplemental Content