public interface Layer extends Serializable, Cloneable, Model
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
activate()
Trigger an activation with the last specified input
|
org.nd4j.linalg.api.ndarray.INDArray |
activate(org.nd4j.linalg.api.ndarray.INDArray input)
Initialize the layer with the given input
and return the activation for this layer
given this input
|
org.nd4j.linalg.api.ndarray.INDArray |
activationMean() |
Layer |
clone() |
NeuralNetConfiguration |
conf()
The configuration for the neural network
|
org.nd4j.linalg.api.ndarray.INDArray |
getInput() |
org.nd4j.linalg.api.ndarray.INDArray |
getParam(String param)
Get the parameter
|
void |
initParams()
Initialize the parameters
|
void |
merge(Layer layer,
int batchSize)
Parameter averaging
|
Map<String,org.nd4j.linalg.api.ndarray.INDArray> |
paramTable()
The param table
|
org.nd4j.linalg.api.ndarray.INDArray |
preOutput(org.nd4j.linalg.api.ndarray.INDArray x) |
void |
setConfiguration(NeuralNetConfiguration conf) |
void |
setInput(org.nd4j.linalg.api.ndarray.INDArray input) |
void |
setParam(String key,
org.nd4j.linalg.api.ndarray.INDArray val)
Set the parameter with a new ndarray
|
void |
setParamTable(Map<String,org.nd4j.linalg.api.ndarray.INDArray> paramTable) |
Layer |
transpose()
Return a transposed copy of the weights/bias
(this means reverse the number of inputs and outputs on the weights)
|
void merge(Layer layer, int batchSize)
layer
- the layer to mergebatchSize
- the batch size to merge onorg.nd4j.linalg.api.ndarray.INDArray getParam(String param)
param
- the key of the parametervoid initParams()
void setParam(String key, org.nd4j.linalg.api.ndarray.INDArray val)
key
- the key to se tval
- the new ndarrayorg.nd4j.linalg.api.ndarray.INDArray activationMean()
NeuralNetConfiguration conf()
Model
void setConfiguration(NeuralNetConfiguration conf)
org.nd4j.linalg.api.ndarray.INDArray getInput()
void setInput(org.nd4j.linalg.api.ndarray.INDArray input)
org.nd4j.linalg.api.ndarray.INDArray preOutput(org.nd4j.linalg.api.ndarray.INDArray x)
org.nd4j.linalg.api.ndarray.INDArray activate()
org.nd4j.linalg.api.ndarray.INDArray activate(org.nd4j.linalg.api.ndarray.INDArray input)
input
- the input to useLayer transpose()
Layer clone()
Copyright © 2015. All rights reserved.