|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.mathutil.randomize.BasicRandomizer
org.encog.mathutil.randomize.NguyenWidrowRandomizer
public class NguyenWidrowRandomizer
Implementation of Nguyen-Widrow weight initialization. This is the default weight initialization used by Encog, as it generally provides the most train-able neural network.
| Field Summary | |
|---|---|
static String |
MSG
|
| Constructor Summary | |
|---|---|
NguyenWidrowRandomizer()
|
|
| Method Summary | |
|---|---|
double |
randomize(double d)
Starting with the specified number, randomize it to the degree specified by this randomizer. |
void |
randomize(double[] d)
Randomize the array based on an array, modify the array. |
void |
randomize(double[][] d)
Randomize the 2d array based on an array, modify the array. |
void |
randomize(double[] d,
int begin,
int size)
Randomize the array based on an array, modify the array. |
void |
randomize(Matrix m)
Randomize the matrix based on an array, modify the array. |
void |
randomize(MLMethod method)
Randomize the synapses and biases in the basic network based on an array, modify the array. |
| Methods inherited from class org.encog.mathutil.randomize.BasicRandomizer |
|---|
getRandom, nextDouble, nextDouble, randomize, setRandom, setSeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String MSG
| Constructor Detail |
|---|
public NguyenWidrowRandomizer()
| Method Detail |
|---|
public void randomize(MLMethod method)
BasicRandomizer
randomize in interface Randomizerrandomize in class BasicRandomizermethod - A network to randomize.public double randomize(double d)
Randomizer
d - The number to randomize.
public void randomize(double[] d)
BasicRandomizer
randomize in interface Randomizerrandomize in class BasicRandomizerd - An array to randomize.public void randomize(double[][] d)
BasicRandomizer
randomize in interface Randomizerrandomize in class BasicRandomizerd - An array to randomize.public void randomize(Matrix m)
BasicRandomizer
randomize in interface Randomizerrandomize in class BasicRandomizerm - A matrix to randomize.
public void randomize(double[] d,
int begin,
int size)
BasicRandomizer
randomize in interface Randomizerrandomize in class BasicRandomizerd - An array to randomize.begin - The beginning element of the array.size - The size of the array to copy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||