![]() |
Ultra 0.9.4
|
#include <evaluator.h>
Public Member Functions | |
| count_error_functor (const P &) | |
| double | operator() (const example &) const |
Classification error functor based on exact matches.
| P | individual type |
The functor owns an oracle initialised from the program and computes a scalar error value for each training example.
This functor returns 0 for a correct prediction and 1 otherwise. When used with sum_error_evaluator, fitness corresponds to the negative number of classification errors.
|
explicit |
Sets up the environment for error measurement.
| [in] | prg | the program to be measured |
|
nodiscard |
| [in] | example | current training case |