I
- Type of represented individualspublic abstract class AbstractNeuralNetSpecies<I extends NeuralNetIndividual> extends java.lang.Object implements INeuralNetSpecies<I>
Abstract implementation for INeuralNetSpecies.
Modifier and Type | Field and Description |
---|---|
protected boolean[] |
biased
Boolean indicating if each linked layer of neural nets are biased
|
protected int[] |
initialMaxNofneurons
Initial number of neurons of each LinkedLayer of the neural nets
|
protected java.lang.String[] |
initiator
Initiator of each LinkedLayer of the neural nets
|
protected java.lang.String[][] |
initiatorNeuronTypes
Initiator of neurons of each HibridLayer of the neural nets
|
protected int[] |
maxNofneurons
Maximum number of neurons of each LinkedLayer of the neural nets
|
protected int[] |
minNofneurons
Minimum number of neurons of each LinkedLayer of the neural nets
|
protected java.lang.String |
neuralNetType
Type of neuralnets
|
protected java.lang.String[][] |
neuronTypes
Types of each neuron for hibrid layers
|
protected int |
nOfHiddenLayers
Number of hidden layers of the neural nets
|
protected int |
nOfInputs
Number of inputs of the neural nets
|
protected int |
nOfOutputs
Number of outputs
|
protected double[][] |
percentages
Percentages of each neuron type for hibrid layers
|
protected java.lang.String[] |
type
Type of each LinkedLayer of the neural nets
|
protected Interval[][] |
weightRanges
Weight ranges of each LinkedLayer of the neural nets
|
Constructor and Description |
---|
AbstractNeuralNetSpecies()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getHiddenLayerInitialMaxNofneurons(int index)
Returns initial maximum number of neurons of a hidden layer
|
java.lang.String |
getHiddenLayerInitiator(int index)
Returns initiator of neurons of a hidden layer
|
int |
getHiddenLayerMaxNofneurons(int index)
Returns maximum number of neurons of a hidden layer
|
int |
getHiddenLayerMinNofneurons(int index)
Returns minimum number of neurons of a hidden layer
|
java.lang.String |
getHiddenLayerType(int index)
Returns type of neurons of a hidden layer
|
Interval |
getHiddenLayerWeightRange(int index,
int indexRange)
Returns weight range of a hidden layer
|
java.lang.String[] |
getInitiatorNeuronTypes(int index)
Returns an array of initiators of neurons of hibrid layers
|
java.lang.String |
getNeuralNetType()
Returns a neural net type
|
java.lang.String[] |
getNeuronTypes(int index)
Returns an array of neuron types of a concrete layer
(this is an hibrid layer)
|
int |
getNOfHiddenLayers()
Returns number of hidden layers of the neural nets
|
int |
getNOfInputs()
Returns number of inputs of the neural nets
|
int |
getNOfOutputs()
Returns number of outputs of the neural nets
|
java.lang.String |
getOutputLayerInitiator()
Returns initiator of neurons of the output layer
|
java.lang.String |
getOutputLayerType()
Returns type of neurons of the output layer
|
Interval |
getOutputLayerWeightRange(int indexRange)
Returns weight range of the output layer
|
double[] |
getPercentages(int index)
Returns an array of percentages of a concrete layer
(this is an hibrid layer)
|
boolean |
isHiddenLayerBiased(int index)
Returns a boolean indicating if a hidden layer is biased
|
boolean |
isOutputLayerBiased()
Returns a boolean indicating if output layer is biased
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createGenotype, createIndividual
protected java.lang.String neuralNetType
protected int nOfInputs
protected int nOfHiddenLayers
protected int nOfOutputs
protected Interval[][] weightRanges
protected int[] maxNofneurons
protected int[] minNofneurons
protected int[] initialMaxNofneurons
protected java.lang.String[] type
protected java.lang.String[] initiator
protected boolean[] biased
protected java.lang.String[][] neuronTypes
protected double[][] percentages
protected java.lang.String[][] initiatorNeuronTypes
public java.lang.String getNeuralNetType()
Returns a neural net type
public int getNOfHiddenLayers()
Returns number of hidden layers of the neural nets
getNOfHiddenLayers
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public int getNOfInputs()
Returns number of inputs of the neural nets
getNOfInputs
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public int getNOfOutputs()
Returns number of outputs of the neural nets
getNOfOutputs
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public Interval getHiddenLayerWeightRange(int index, int indexRange)
Returns weight range of a hidden layer
getHiddenLayerWeightRange
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerindexRange
- Index of the desired range into the layer (useful for hibrid layer)public Interval getOutputLayerWeightRange(int indexRange)
Returns weight range of the output layer
getOutputLayerWeightRange
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
indexRange
- Index of the desired range into the layer (useful for hibrid layer)public int getHiddenLayerMinNofneurons(int index)
Returns minimum number of neurons of a hidden layer
getHiddenLayerMinNofneurons
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic int getHiddenLayerMaxNofneurons(int index)
Returns maximum number of neurons of a hidden layer
getHiddenLayerMaxNofneurons
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic int getHiddenLayerInitialMaxNofneurons(int index)
Returns initial maximum number of neurons of a hidden layer
getHiddenLayerInitialMaxNofneurons
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic java.lang.String getHiddenLayerType(int index)
Returns type of neurons of a hidden layer
getHiddenLayerType
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic java.lang.String getOutputLayerType()
Returns type of neurons of the output layer
getOutputLayerType
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public java.lang.String getHiddenLayerInitiator(int index)
Returns initiator of neurons of a hidden layer
getHiddenLayerInitiator
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic java.lang.String getOutputLayerInitiator()
Returns initiator of neurons of the output layer
getOutputLayerInitiator
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public boolean isHiddenLayerBiased(int index)
Returns a boolean indicating if a hidden layer is biased
isHiddenLayerBiased
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic boolean isOutputLayerBiased()
Returns a boolean indicating if output layer is biased
isOutputLayerBiased
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
public java.lang.String[] getNeuronTypes(int index)
Returns an array of neuron types of a concrete layer (this is an hibrid layer)
getNeuronTypes
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic double[] getPercentages(int index)
Returns an array of percentages of a concrete layer (this is an hibrid layer)
getPercentages
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layerpublic java.lang.String[] getInitiatorNeuronTypes(int index)
Returns an array of initiators of neurons of hibrid layers
getInitiatorNeuronTypes
in interface INeuralNetSpecies<I extends NeuralNetIndividual>
index
- Index of the desired hidden layer