Darwin Neuroevolution Framework
|
Domain: TestDomain. More...
#include <test_domain.h>
Public Member Functions | |
size_t | inputs () const override |
Number of inputs to a Brain. | |
size_t | outputs () const override |
Number of outputs from a Brain. | |
bool | evaluatePopulation (darwin::Population *population) const override |
Assigns fitness values to every genotype. More... | |
![]() | |
virtual unique_ptr< core::PropertySet > | calibrateGenotype ([[maybe_unused]] const Genotype *genotype) const |
Optional: additional fitness metrics (normally not used in the population evaluation, ie a test set) | |
Domain: TestDomain.
The TestDomain is a dummy domain implementation. It generates random input values (in the range of [-input_range, +input_range]
) and checks that the output values from the population's brains fall in [-output_range, +output_range]
.
The "evaluated" fitness values are also random, using a normal distribution, rounded to multiples of fitness_resolution
|
overridevirtual |
Assigns fitness values to every genotype.
Having a good fitness function is a key part of evolutionary algorithms:
true
if the evolution goal was reached Implements darwin::Domain.