N
- Type of the INeuronStructuralMutatorpublic interface INeuronStructuralMutator<N extends LinkedNeuron>
Structural Mutator of a specific neuron
Modifier and Type | Method and Description |
---|---|
boolean |
addLink(N neuron,
LinkedLayer layer,
ILayer<? extends INeuron> previousLayer,
int indexNeuron,
int indexOrigin)
Adds a link to a neuron of an specific layer from
a specific origin neuron
|
void |
addNeuron(N neuron,
LinkedLayer layer,
ILayer<? extends INeuron> previousLayer,
LinkedLayer nextLayer)
Adds a neuron into a specific layer
|
boolean |
removeLink(N neuron,
int indexOrigin)
Removes a link of a neuron of an specific layer from
a specific origin neuron
|
void |
removeNeuron(LinkedLayer layer,
LinkedLayer nextLayer,
int indexNeuron)
Removes a neuron of a specific layer
|
void |
unitNeuronsWeights(N firstNeuron,
N secondNeuron,
LinkedLayer layer,
LinkedLayer nextLayer,
int indexFirstNeuron,
int indexSecondNeuron)
Units the weights of two specific neurons, and stores
the result in the first neuron
|
void addNeuron(N neuron, LinkedLayer layer, ILayer<? extends INeuron> previousLayer, LinkedLayer nextLayer)
Adds a neuron into a specific layer
neuron
- Neuron to add into the layerlayer
- Hidden layer to add the neuronpreviousLayer
- Previous layer to the selected hidden layernextLayer
- Next layer to the selected hidden layervoid removeNeuron(LinkedLayer layer, LinkedLayer nextLayer, int indexNeuron)
Removes a neuron of a specific layer
layer
- Hidden layer to remove the neuronnextLayer
- Next layer to the selected hidden layerindexNeuron
- Index of neuron to removeboolean addLink(N neuron, LinkedLayer layer, ILayer<? extends INeuron> previousLayer, int indexNeuron, int indexOrigin)
Adds a link to a neuron of an specific layer from a specific origin neuron
neuron
- Neuron to add the linklayer
- Hidden layer to add the linkpreviousLayer
- Previous layer to the selected hidden layerindexNeuron
- Index of neuron to add the linkindexOrigin
- Index of neuron that its link come from in the previous layerboolean removeLink(N neuron, int indexOrigin)
Removes a link of a neuron of an specific layer from a specific origin neuron
neuron
- Neuron to remove the linkindexOrigin
- Index of neuron that its link come from in the previous layervoid unitNeuronsWeights(N firstNeuron, N secondNeuron, LinkedLayer layer, LinkedLayer nextLayer, int indexFirstNeuron, int indexSecondNeuron)
Units the weights of two specific neurons, and stores the result in the first neuron
firstNeuron
- First Neuron to unit its weightssecondNeuron
- Second Neuron to unit its weightslayer
- Hidden layer to unit the weights of two selected neuronsnextLayer
- Next layer to the selected hidden layerindexFirstNeuron
- Index of the first neuron to unitindexSecondNeuron
- Index of the second neuron to unit