public abstract class PureLayerInitiator extends java.lang.Object implements IInitiator
Abstract implementation for IInitiator
Modifier and Type | Field and Description |
---|---|
protected <any> |
context
Execution context
|
protected IRandGen |
randGen
Random generator used in creation
|
protected INeuralNetSpecies<? extends IIndividual> |
species
Associated species
|
Constructor and Description |
---|
PureLayerInitiator()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
void |
contextualize(<any> context)
Set the system context
|
abstract Link[] |
createLinks(LinkedLayer linkedLayer,
ILayer<? extends INeuron> previousLayer,
LinkedNeuron newNeuron)
Create all the links of a neural net
|
void |
initiate(LinkedLayer linkedLayer,
ILayer<? extends INeuron> previousLayer,
int indexLayer,
int indexWeightRange)
Initiation method of a linked layer
|
abstract void |
initiateWeights(LinkedLayer linkedLayer)
Initiate the weights of all the links of a neural net
|
abstract void |
prepareInitiation()
Prepare initiation process
|
void |
setRandGen(IRandGen randGen)
Sets the random generator of the initiator
|
protected <any> context
protected INeuralNetSpecies<? extends IIndividual> species
protected IRandGen randGen
public void contextualize(<any> context)
Set the system context
contextualize
in interface IInitiator
context
- Execution contextpublic void setRandGen(IRandGen randGen)
Sets the random generator of the initiator
randGen
- Random generatorpublic void initiate(LinkedLayer linkedLayer, ILayer<? extends INeuron> previousLayer, int indexLayer, int indexWeightRange)
Initiation method of a linked layer
initiate
in interface IInitiator
linkedLayer
- Linked layer to initiatepreviousLayer
- Previous layerindexLayer
- Index of layer into the neural netindexWeightRange
- Index of weight range into the layer (useful for initiating hibrid layers)public abstract void prepareInitiation()
Prepare initiation process
public abstract Link[] createLinks(LinkedLayer linkedLayer, ILayer<? extends INeuron> previousLayer, LinkedNeuron newNeuron)
Create all the links of a neural net
linkedLayer
- Linked layer where create the linkspreviousLayer
- LinkedLayer the neurons are going to be connectednewNeuron
- New neuron to create its linkspublic abstract void initiateWeights(LinkedLayer linkedLayer)
Initiate the weights of all the links of a neural net
linkedLayer
- Linked layer where initiate the weights