|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Randomizer
Defines the interface for a class that is capable of randomizing the weights and bias values of a neural network.
Method Summary | |
---|---|
Random |
getRandom()
|
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 an array. |
void |
randomize(Matrix m)
Randomize the matrix based on an array, modify the array. |
void |
randomize(MLMethod network)
Randomize the synapses and bias values in the basic network based on an array, modify the array. |
void |
setRandom(Random theRandom)
Explicitly set the Random source |
void |
setSeed(long seed)
Explicitly set the seed used for randomization |
Method Detail |
---|
void randomize(MLMethod network)
network
- A network to randomize.double randomize(double d)
d
- The number to randomize.
void randomize(double[] d)
d
- An array to randomize.void randomize(double[][] d)
d
- An array to randomize.void randomize(Matrix m)
m
- A matrix to randomize.void randomize(double[] d, int begin, int size)
d
- The array to randomize.begin
- The beginning element.size
- The size of the array.void setRandom(Random theRandom)
theRandom
- Random getRandom()
void setSeed(long seed)
seed
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |