template<Individual P>
class ultra::src::rmae_error_functor< P >
Relative mean absolute error functor for evaluating a program on a single example.
Template Parameters
P
individual type
The functor owns an oracle initialised from the program and computes a scalar error value for each training example.
Computes a scaled relative difference between target and predicted values:
This is similar to mae_error_functor but here we sum the relative errors. The idea is that the absolute difference of 1 between 6 and 5 is more significant than the same absolute difference between 1000001 and 1000000. The mathematically precise way to express this notion is to calculate the relative difference.