public class OutputLayerBuilder extends LayerBuilder
n
Constructor and Description |
---|
OutputLayerBuilder(int n,
OutputFunction f,
Cost cost)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OutputLayer |
build(int p)
Creates a hidden layer.
|
java.lang.String |
toString() |
neurons
public OutputLayerBuilder(int n, OutputFunction f, Cost cost)
n
- the number of neurons.f
- the activation function.public java.lang.String toString()
toString
in class java.lang.Object
public OutputLayer build(int p)
LayerBuilder
build
in class LayerBuilder
p
- the number of input variables (not including bias value).