June 2017
Intermediate to advanced
744 pages
16h 41m
English
This is the very foundation class for this chapter's code. According to the theory, an artificial neuron has the following attributes:
It is also important to define one attribute that will be useful in future examples, that is the output before activation function. We then have the implementation of the following properties:
public class Neuron {
protected ArrayList<Double> weight;
private ArrayList<Double> input;
private Double output;
private Double outputBeforeActivation;
private int numberOfInputs = 0;
protected Double bias = 1.0;
private IActivationFunction activationFunction;
…
}When instantiating a neuron, we need to specify how many inputs are going to feed values to it, and what ...
Read now
Unlock full access