January 2019
Intermediate to advanced
322 pages
7h 29m
English
The example presented in this section is an LSTM that would be trained to generate text, one character at a time. The training is done using Spark.
The dependencies for this example are the following:
We start configuring the network as usual through the NeuralNetConfiguration.Builder class, as follows:
val rng = new Random(12345)val lstmLayerSize: Int = 200val tbpttLength: Int = 50val nSamplesToGenerate: Int = 4val nCharactersToSample: Int = 300val generationInitialization: String = nullval conf ...
Read now
Unlock full access