public class RandomWeightInitializer extends java.lang.Object implements WeightInitializer
| Constructor and Description |
|---|
RandomWeightInitializer(double aBoundary)
Creates a new instance of RandomWeightInitializer
|
RandomWeightInitializer(double aLowerBound,
double anUpperBound)
Creates a new instance of RandomWeightInitializer and set the domain to initialize
the weights with to
[aLowerBound, anUpperBound]. |
| Modifier and Type | Method and Description |
|---|---|
double |
getLowerBound()
Gets the lower bound.
|
double |
getUpperBound()
Gets the upper bound.
|
void |
initialize(Matrix aMatrix)
Initializes the weights or biases within the domain
[lowerBound, upperBound]. |
void |
setLowerBound(double aLowerBound)
Sets the lower bound.
|
void |
setUpperBound(double anUpperBound)
Sets the upper bound.
|
public RandomWeightInitializer(double aBoundary)
aBoundary - the boundaries of the domain to initialize the weights with
to [-aBoundary, aBoundary].public RandomWeightInitializer(double aLowerBound,
double anUpperBound)
[aLowerBound, anUpperBound].aLowerBound - the lower boundary of the domain to initialize the weights with.anUpperBound - the upper boundary of the domain to initialize the weights with.
to [-aBoundary, aBoundary].public void initialize(Matrix aMatrix)
[lowerBound, upperBound].initialize in interface WeightInitializeraMatrix - the weights or biases to initialize.public double getLowerBound()
public void setLowerBound(double aLowerBound)
aLowerBound - the new lower bound.public double getUpperBound()
public void setUpperBound(double anUpperBound)
anUpperBound - the new upper bound.Submit Feedback to pmarrone@users.sourceforge.net