|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.integration.TargetFitnessFunction
com.anji.neat.NeatTargetFitnessFunction
Fitness function where error is subtracted from max fitness, then squared. Fitness is skewed
such that max fitness is MAX_FITNESS
. See
calculateErrorFitness()
for details. This mimics the error function used in Evolving Neural Networks
through Augmenting Topologies .
TargetFitnessFunction
,
Serialized FormField Summary |
Fields inherited from class com.anji.integration.TargetFitnessFunction |
STIMULI_FILE_NAME_KEY, TARGETS_FILE_NAME_KEY |
Constructor Summary | |
NeatTargetFitnessFunction()
|
Method Summary | |
protected int |
calculateErrorFitness(double[][] responses,
double minResponse,
double maxResponse)
Subtract responses from targets, sum all differences, subtract from max
fitness, and square result. |
void |
init(Properties newProps)
See Parameter Details for specific property settings. |
Methods inherited from class com.anji.integration.TargetFitnessFunction |
evaluate, getMaxFitnessValue, getStimuli, getTargetRange, getTargets, setMaxFitnessValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NeatTargetFitnessFunction()
Method Detail |
public void init(Properties newProps)
init
in interface Configurable
init
in class TargetFitnessFunction
newProps
- configuration parametersprotected int calculateErrorFitness(double[][] responses, double minResponse, double maxResponse)
responses
from targets, sum all differences, subtract from max
fitness, and square result.
calculateErrorFitness
in class TargetFitnessFunction
responses
- output top be compared to targetsminResponse
- maxResponse
-
TargetFitnessFunction.evaluate(List)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |