Package com.jml.neural_network.layers
Interface TrainableLayer
- All Superinterfaces:
BaseLayer
This layer specifies functionality for a layer that has trainable parameters.
-
Method Summary
Modifier and TypeMethodDescriptionlinalg.Matrix[]Gets the trainable parameters for this layer as an array of matrices.linalg.Matrix[]Gets the update matrices for parameters of this layer.voidResists the accumulation of gradients for this layer.voidsetParams(linalg.Matrix... params)Sets the parameters for this layer.Methods inherited from interface com.jml.neural_network.layers.BaseLayer
back, forward, getDetails, getInDim, getOutDim, inspect, updateInDim
-
Method Details
-
getParams
linalg.Matrix[] getParams()Gets the trainable parameters for this layer as an array of matrices. -
setParams
void setParams(linalg.Matrix... params)Sets the parameters for this layer. -
resetGradients
void resetGradients()Resists the accumulation of gradients for this layer.- Specified by:
resetGradientsin interfaceBaseLayer
-
getUpdates
linalg.Matrix[] getUpdates()Gets the update matrices for parameters of this layer.- Specified by:
getUpdatesin interfaceBaseLayer- Returns:
- The parameter update matrices.
-