public class GaussianNormalInit extends Object implements WeightInitializer, BiastInitializer
Constructor and Description |
---|
GaussianNormalInit(double stndDev)
Creates a new GuassianNormalInit object for initializing weights
|
Modifier and Type | Method and Description |
---|---|
GaussianNormalInit |
clone() |
double |
getStndDev() |
void |
init(Matrix w,
Random rand)
Initializes the values of the given weight matrix
|
void |
init(Vec b,
int fanIn,
Random rand)
Performs the initialization of the given vector of bias values
|
void |
setStndDev(double stndDev)
Sets the standard deviation of the distribution that will be sampled from
|
public GaussianNormalInit(double stndDev)
stndDev
- the standard deviation of the distribution to sample frompublic void setStndDev(double stndDev)
stndDev
- the standard deviation to usepublic double getStndDev()
public void init(Matrix w, Random rand)
WeightInitializer
init
in interface WeightInitializer
w
- the matrix to initializerand
- the source of randomness for the initializationpublic void init(Vec b, int fanIn, Random rand)
BiastInitializer
init
in interface BiastInitializer
b
- the vector to store the biases infanIn
- the number of connections coming into the layer that these
biases are for.rand
- the source of randomness for initializationpublic GaussianNormalInit clone()
clone
in interface BiastInitializer
clone
in interface WeightInitializer
clone
in class Object
Copyright © 2017. All rights reserved.