public class WeightInitUtil extends Object
Constructor and Description |
---|
WeightInitUtil() |
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
initWeights(int[] shape,
float min,
float max) |
static org.nd4j.linalg.api.ndarray.INDArray |
initWeights(int nIn,
int nOut,
WeightInit initScheme,
org.nd4j.linalg.api.activation.ActivationFunction act,
org.apache.commons.math3.distribution.RealDistribution dist)
Initializes a matrix with the given weight initialization scheme
|
public static org.nd4j.linalg.api.ndarray.INDArray initWeights(int[] shape, float min, float max)
public static org.nd4j.linalg.api.ndarray.INDArray initWeights(int nIn, int nOut, WeightInit initScheme, org.nd4j.linalg.api.activation.ActivationFunction act, org.apache.commons.math3.distribution.RealDistribution dist)
nIn
- the number of rows in the matrixnOut
- the number of columns in the matrixinitScheme
- the scheme to useCopyright © 2014. All rights reserved.