org.neuroph.contrib.matrixmlp
Class MatrixMlpLayer
- java.lang.Object
-
- org.neuroph.contrib.matrixmlp.MatrixMlpLayer
-
- All Implemented Interfaces:
- MatrixLayer
public class MatrixMlpLayer extends java.lang.Object implements MatrixLayer
Matrix based layer optimized for backpropagation
-
-
Constructor Summary
Constructors Constructor and Description MatrixMlpLayer(Layer sourceLayer, MatrixLayer previousLayer, TransferFunction transferFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcalculate()Calculate layervoidcopyMatricesToNeurons()voidcopyNeuronsToMatrices()double[][]getDeltaWeights()double[]getErrors()double[]getInputs()Returns layer input *voidgetInputsFromPreviousLayer()double[]getNetInput()intgetNeuronsCount()MatrixLayergetNextLayer()double[]getOutputs()Returns layer outputsMatrixLayergetPreviousLayer()TransferFunctiongetTransferFunction()double[][]getWeights()voidsaveCurrentWeights()voidsetErrors(double[] errors)voidsetInputs(double[] inputs)Sets layer inputvoidsetNextLayer(MatrixLayer nextLayer)voidsetOutputs(double[] outputs)Sets layer outputsvoidsetPreviousLayer(MatrixLayer previousLayer)voidsync()
-
-
-
Constructor Detail
-
MatrixMlpLayer
public MatrixMlpLayer(Layer sourceLayer, MatrixLayer previousLayer, TransferFunction transferFunction)
-
-
Method Detail
-
getPreviousLayer
public MatrixLayer getPreviousLayer()
-
setPreviousLayer
public void setPreviousLayer(MatrixLayer previousLayer)
-
getNextLayer
public MatrixLayer getNextLayer()
-
setNextLayer
public void setNextLayer(MatrixLayer nextLayer)
-
copyNeuronsToMatrices
public void copyNeuronsToMatrices()
-
copyMatricesToNeurons
public void copyMatricesToNeurons()
-
getInputs
public double[] getInputs()
Description copied from interface:MatrixLayerReturns layer input *- Specified by:
getInputsin interfaceMatrixLayer- Returns:
- layer input vector
-
getOutputs
public double[] getOutputs()
Description copied from interface:MatrixLayerReturns layer outputs- Specified by:
getOutputsin interfaceMatrixLayer- Returns:
- layer outputs
-
setInputs
public void setInputs(double[] inputs)
Description copied from interface:MatrixLayerSets layer input- Specified by:
setInputsin interfaceMatrixLayer
-
setOutputs
public void setOutputs(double[] outputs)
Description copied from interface:MatrixLayerSets layer outputs- Specified by:
setOutputsin interfaceMatrixLayer
-
getWeights
public double[][] getWeights()
-
getInputsFromPreviousLayer
public void getInputsFromPreviousLayer()
-
calculate
public final void calculate()
Description copied from interface:MatrixLayerCalculate layer- Specified by:
calculatein interfaceMatrixLayer
-
getNeuronsCount
public int getNeuronsCount()
-
getErrors
public double[] getErrors()
-
setErrors
public void setErrors(double[] errors)
-
getTransferFunction
public TransferFunction getTransferFunction()
-
getNetInput
public double[] getNetInput()
-
saveCurrentWeights
public void saveCurrentWeights()
-
getDeltaWeights
public double[][] getDeltaWeights()
-
sync
public void sync()
-
-
DMelt 3.0 © DataMelt by jWork.ORG