July 2017
Beginner to intermediate
715 pages
17h 3m
English
So far, we have covered many models, that is, logistic regression, SVM, and RandomForest, and we have looked at multiple libraries that implement them. But we have not yet covered neural networks. In Java, there is a special library that deals exclusively with neural networks--Encog. It is available on Maven Central and can be added with the following snippet:
<dependency> <groupId>org.encog</groupId> <artifactId>encog-core</artifactId> <version>3.3.0</version> </dependency>
After including the library, the first step is to specify the architecture of a neural network. We can do it like this:
BasicNetwork network = new BasicNetwork(); network.addLayer(new BasicLayer(new ActivationSigmoid(), true, noInputNeurons)); network.addLayer(new ...
Read now
Unlock full access