|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joone.engine.weights.RandomWeightInitializer
public class RandomWeightInitializer
This class initializes weights (and biases) in a random way within a given domain.
| Constructor Summary | |
|---|---|
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]. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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].| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||