template<Individual P>
class ultra::src::mse_error_functor< P >
Mean squared 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: ( ).
Note
Real data always have noise (sampling/measurement errors) and this noise tends to follow a Gaussian distribution. It can be shown that when we have a set of data with errors drawn from such a distribution, we're most likely to find the 'correct' underlying model by minimizing the sum of squared errors.
Remarks
When the dataset contains outliers, the mse_error_functor will heavily weight each of them (this is the result of squaring the outliers). mae_error_functor is less sensitive to the presence of outliers (a desirable property in many applications).