public class Functions extends Feature
Function.Spline
ABS_REF_PERIODS, BIAS, BP_TRAINING, decoder, DELAYS, evolver, FUNCTIONS, id, LINKS, maxValue, minValue, NEURONS, params, PATTERNS, REL_REF_PERIODS, RPROP_TRAINING, SPLINE, THRESHOLDS, valueCount, WEIGHTS
Constructor and Description |
---|
Functions(Decoder decoder)
Constructs the feature.
|
Modifier and Type | Method and Description |
---|---|
void |
addFunction(Function function,
Evolver evolver)
Adds an activation function to the pool.
|
void |
clearFunctionPool()
Removes all activation functions from the pool.
|
void |
develop()
Collects the functions from the pool and puts it into a list according to the neuron order.
|
void |
doInputs(boolean inputs)
Sets status of input neuron AFs.
|
void |
doOutputs(boolean outputs)
Sets status of output neuron AFs.
|
int |
getFunctionCount()
Returns the number of activation functions in the pool.
|
boolean |
isInputs()
Returns status of input neuron AFs.
|
boolean |
isOutputs()
Returns status of output neuron AFs.
|
void |
setup(Evolver evolver)
Sets up the feature by counting the number of neurons, for which functions should be evolved.
|
compareTo, getDecoder, getField, getId, getMaxValue, getMinValue, getValueCount, setDecoder, setMaxValue, setMinValue, setupFields, toString
public Functions(Decoder decoder)
decoder
- the decoderpublic int getFunctionCount()
public void addFunction(Function function, Evolver evolver)
function
- a Boone activation functionevolver
- the evolver, may be null, if function is not a splinepublic void clearFunctionPool()
public boolean isInputs()
public void doInputs(boolean inputs)
inputs
- true, if input neuron AFs are evolvedpublic boolean isOutputs()
public void doOutputs(boolean outputs)
outputs
- true, if output neuron AFs are evolved.public void setup(Evolver evolver)