January 2019
Intermediate to advanced
322 pages
7h 29m
English
The first example presented in this chapter is an LSTM which, after the training, will recite the following characters once the first character of the learning string has been used as input for it.
The dependencies for this example are the following:
Assuming we have a learn string that is specified through an immutable variable LEARNSTRING, let's start creating a dedicated list of possible characters from it, as follows:
val LEARNSTRING_CHARS: util.LinkedHashSet[Character] = new util.LinkedHashSet[Character]for (c <- LEARNSTRING) { LEARNSTRING_CHARS.add(c)}LEARNSTRING_CHARS_LIST.addAll(LEARNSTRING_CHARS) ...Read now
Unlock full access