|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neuroph.util.random.WeightsRandomizer
public class WeightsRandomizer
Basic weights randomizer, iterates and randomizes all connection weights in network.
| Field Summary | |
|---|---|
protected Random |
randomGenerator
Random number genarator used by randomizers |
| Constructor Summary | |
|---|---|
WeightsRandomizer()
Create a new instance of WeightsRandomizer |
|
WeightsRandomizer(Random randomGenerator)
Create a new instance of WeightsRandomizer with specified random generator If you use the same random generators, you'll get the same random sequences |
|
| Method Summary | |
|---|---|
Random |
getRandomGenerator()
Gets random generator used to generate random values |
protected double |
nextRandomWeight()
Returns next random value from random generator, that will be used to initialize weight |
void |
randomize(NeuralNetwork neuralNetwork)
Iterate all layers, neurons and connections in network, and randomize connection weights |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Random randomGenerator
| Constructor Detail |
|---|
public WeightsRandomizer()
public WeightsRandomizer(Random randomGenerator)
randomGenerator - random geneartor to use for randomizing weights| Method Detail |
|---|
public Random getRandomGenerator()
public void randomize(NeuralNetwork neuralNetwork)
neuralNetwork - neural network to randomizeprotected double nextRandomWeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||