Darwin Neuroevolution Framework
|
Domain: Car Track. More...
#include <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: Car Track.
Race around a procedurally generated track, using the car's sensors (camera, ...)
Output | Value |
---|---|
0 | acceleration force (negative values result in reverse movement) |
1 | desired steering angle (-1.0 .. +1.0) |
|
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.