org.encog.mathutil.randomize
Class NguyenWidrowRandomizer
- java.lang.Object
-
- org.encog.mathutil.randomize.BasicRandomizer
-
- org.encog.mathutil.randomize.NguyenWidrowRandomizer
-
- All Implemented Interfaces:
- Randomizer
public class NguyenWidrowRandomizer extends BasicRandomizer
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
Fields Modifier and Type Field and Description static java.lang.StringMSG
-
Constructor Summary
Constructors Constructor and Description NguyenWidrowRandomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublerandomize(double d)Starting with the specified number, randomize it to the degree specified by this randomizer.voidrandomize(double[] d)Randomize the array based on an array, modify the array.voidrandomize(double[][] d)Randomize the 2d array based on an array, modify the array.voidrandomize(double[] d, int begin, int size)Randomize the array based on an array, modify the array.voidrandomize(Matrix m)Randomize the matrix based on an array, modify the array.voidrandomize(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
-
-
-
-
Method Detail
-
randomize
public void randomize(MLMethod method)
Description copied from class:BasicRandomizerRandomize the synapses and biases in the basic network based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.- Specified by:
randomizein interfaceRandomizer- Overrides:
randomizein classBasicRandomizer- Parameters:
method- A network to randomize.
-
randomize
public double randomize(double d)
Description copied from interface:RandomizerStarting with the specified number, randomize it to the degree specified by this randomizer. This could be a totally new random number, or it could be based on the specified number.- Parameters:
d- The number to randomize.- Returns:
- A randomized number.
-
randomize
public void randomize(double[] d)
Description copied from class:BasicRandomizerRandomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.- Specified by:
randomizein interfaceRandomizer- Overrides:
randomizein classBasicRandomizer- Parameters:
d- An array to randomize.
-
randomize
public void randomize(double[][] d)
Description copied from class:BasicRandomizerRandomize the 2d array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.- Specified by:
randomizein interfaceRandomizer- Overrides:
randomizein classBasicRandomizer- Parameters:
d- An array to randomize.
-
randomize
public void randomize(Matrix m)
Description copied from class:BasicRandomizerRandomize the matrix based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.- Specified by:
randomizein interfaceRandomizer- Overrides:
randomizein classBasicRandomizer- Parameters:
m- A matrix to randomize.
-
randomize
public void randomize(double[] d, int begin, int size)Description copied from class:BasicRandomizerRandomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.- Specified by:
randomizein interfaceRandomizer- Overrides:
randomizein classBasicRandomizer- Parameters:
d- An array to randomize.begin- The beginning element of the array.size- The size of the array to copy.
-
-
DMelt 3.0 © DataMelt by jWork.ORG