public class HiddenLayer extends Layer
Constructor and Description |
---|
HiddenLayer(int n,
int p,
ActivationFunction f)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
backpropagate(double[] error)
Propagates the errors back to a lower layer.
|
void |
f(double[] x)
The activation or output function.
|
java.lang.String |
toString() |
computeUpdate, getInputSize, getOutputSize, gradient, linear, mle, mse, output, propagate, rectifier, sigmoid, tanh, update
public HiddenLayer(int n, int p, ActivationFunction f)
n
- the number of neurons.p
- the number of input variables (not including bias value).f
- the activation function.public java.lang.String toString()
toString
in class java.lang.Object
public void f(double[] x)
Layer
public void backpropagate(double[] error)
Layer
backpropagate
in class Layer
error
- the gradient vector of lower layer.