These constants represent the error functions used when calculating the error during training.
The training error function used is chosen by the
fann_set_train_error_function
function. The default training error function is FANN_ERRORFUNC_TANH
.
Constants
The basic linear error function which simply calculates the error as the difference between the real output and the desired output.
The tanh error function is an error function that makes large deviations stand out, by altering the error value used when training the network. The idea behind this is that it is worse to have 1 output that misses the target by 100%, than having 10 outputs that misses the target by 10%.
This is the default error function and it is usually better. It can however give poor results with high learning rates.