public class RandomInitiator extends PureLayerInitiator
Random initiator both conections and weights
Modifier and Type | Field and Description |
---|---|
protected double |
significativeWeight
Minimum absolute value of the new weights
|
context, randGen, species
Constructor and Description |
---|
RandomInitiator()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
Link[] |
createLinks(LinkedLayer linkedLayer,
ILayer<? extends INeuron> previousLayer,
LinkedNeuron newNeuron)
Create all the links of a neural net
|
double |
getSignificativeWeight()
Access to significative weight value
|
void |
initiateWeights(LinkedLayer linkedLayer)
Initiate the weights of all the links of a neural net
|
void |
prepareInitiation()
Prepare initiation process
|
void |
setSignificativeWeight(double significativeWeight)
Sets the significative weight value
|
contextualize, initiate, setRandGen
protected double significativeWeight
public double getSignificativeWeight()
Access to significative weight value
public void setSignificativeWeight(double significativeWeight)
Sets the significative weight value
significativeWeight
- New significative weight valuepublic void prepareInitiation()
Prepare initiation process
prepareInitiation
in class PureLayerInitiator
public Link[] createLinks(LinkedLayer linkedLayer, ILayer<? extends INeuron> previousLayer, LinkedNeuron newNeuron)
Create all the links of a neural net
createLinks
in class PureLayerInitiator
linkedLayer
- Linked layer where create the linkspreviousLayer
- LinkedLayer the neurons are going to be connectednewNeuron
- New neuron to create its linkspublic void initiateWeights(LinkedLayer linkedLayer)
Initiate the weights of all the links of a neural net
initiateWeights
in class PureLayerInitiator
linkedLayer
- Linked layer where initiate the weights