public class MLPArchitecture extends Object implements Serializable
Constructor and Description |
---|
MLPArchitecture(int inputSize)
Construct an MLP architecture.
|
Modifier and Type | Method and Description |
---|---|
MLPArchitecture |
add(MLPArchitecture second)
Creates config describing network where first goes this config and after goes this method's argument.
|
int |
inputSize()
Size of input of MLP.
|
LayerArchitecture |
layerArchitecture(int layer)
Get architecture of layer with given index.
|
int |
layersCount()
Count of layers in MLP.
|
int |
outputSize()
Size of output of MLP.
|
int |
parametersCount()
Count of parameters in this MLP architecture.
|
TransformationLayerArchitecture |
transformationLayerArchitecture(int layer)
Get architecture of transformation layer (i.e. non-input layer) with given index.
|
MLPArchitecture |
withAddedLayer(int neuronsCnt,
boolean hasBias,
IgniteDifferentiableDoubleToDoubleFunction f)
Constructs new MLP architecture with new layer added on top of all this architecture layers.
|
public MLPArchitecture(int inputSize)
inputSize
- Size of input to MLP.public int layersCount()
public int inputSize()
public int outputSize()
public MLPArchitecture withAddedLayer(int neuronsCnt, boolean hasBias, IgniteDifferentiableDoubleToDoubleFunction f)
neuronsCnt
- Count of neurons in new layer.hasBias
- Flag indicating presence of bias in added layer.f
- Activation function of a new layer.public LayerArchitecture layerArchitecture(int layer)
layer
- Index of layer to get architecture from.public TransformationLayerArchitecture transformationLayerArchitecture(int layer)
layer
- Index of layer to get architecture from.public MLPArchitecture add(MLPArchitecture second)
second
- Config to add after this config.public int parametersCount()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024