public abstract class LayerBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
n
The number of neurons.
|
Constructor and Description |
---|
LayerBuilder(int n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Layer |
build(int p)
Creates a hidden layer.
|
int |
neurons()
Returns the number of neurons.
|
public LayerBuilder(int n)
n
- the number of neurons.public int neurons()
public abstract Layer build(int p)
p
- the number of input variables (not including bias value).