Package de.jungblut.classification.nn
Class WeightMatrix
- java.lang.Object
-
- de.jungblut.classification.nn.WeightMatrix
-
public final class WeightMatrix extends java.lang.ObjectWeight matrix wrapper to encapsulate the random initialization.- Author:
- thomas.jungblut
-
-
Constructor Summary
Constructors Constructor Description WeightMatrix(int unitsLeftLayer, int unitsRightLayer)Creates a [unitsRightLayer x (unitsLeftLayer + 1)] matrix of weights and seed the values using the famous uniform distribution formula of LeCun.WeightMatrix(de.jungblut.math.DoubleMatrix weights)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.jungblut.math.DoubleMatrixgetWeights()voidsetWeights(de.jungblut.math.DoubleMatrix weights)java.lang.StringtoString()
-
-
-
Constructor Detail
-
WeightMatrix
public WeightMatrix(int unitsLeftLayer, int unitsRightLayer)Creates a [unitsRightLayer x (unitsLeftLayer + 1)] matrix of weights and seed the values using the famous uniform distribution formula of LeCun. Which is calculating the deviation of the weights by SQRT(6)/((num units left layer)+(num units right layer)) and distributing them with zero mean.
-
WeightMatrix
public WeightMatrix(de.jungblut.math.DoubleMatrix weights)
-
-