ec.de
Class DEStatistics
java.lang.Object
ec.Statistics
ec.de.DEStatistics
- All Implemented Interfaces:
- Setup, Singleton, java.io.Serializable
public class DEStatistics
- extends Statistics
DEStatistics provides a straightforward solution to one problem
many existing ECJ statistics classes have when used in conjunction
with Differential Evolution (DE), namely reporting the fitness of individuals
after they have been evaluated. The problem stems from the fact that all
individuals create children (there is no selection pressure). Rather, the child
competes immediately with its parent, and only the best of the two survives. As
a result, all other statistics classes would report the fitness of the child, as
opposed to the fitness of the better of the child and the parent. In many cases,
that fitness might provide misleading information (for example, it might appear
that the average fitness of the population is too random, and that there is no
evident progress). To fix this, the DEStatistics class performs the competition
between the child and the parent right before other statistics classes might be
invoked. Make sure DEStatistics is set as the main statistics class, and the other
are set as its children.
- See Also:
- Serialized Form
Methods inherited from class ec.Statistics |
finalStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postBreedingStatistics, postCheckpointStatistics, postInitialEvaluationStatistics, postInitializationStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preBreedingStatistics, preCheckpointStatistics, preEvaluationStatistics, preInitialEvaluationStatistics, preInitializationStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEStatistics
public DEStatistics()
postEvaluationStatistics
public void postEvaluationStatistics(EvolutionState state)
- Description copied from class:
Statistics
- Called immediately after evaluation occurs.
- Overrides:
postEvaluationStatistics
in class Statistics