Hi everybody,
I just noticed that in the online documentation, the definition of FANN_THESHHOLD_SYMMETRIC is :
Quote:
FANN_THRESHOLD_SYMMETRIC Threshold activation function.
x < 0 -> y = 0, x >= 0 -> y = 1
Reading the code, we have this (fann.c):
Code:
case FANN_THRESHOLD_SYMMETRIC:
neuron_it->value = (fann_type) ((neuron_sum < 0) ? -multiplier : multiplier);
break;
So the definition would rather be :
Quote:
x < 0 -> y = -1, x >= 0 -> y = 1
(ref:
http://leenissen.dk/fann/html/files/fann_cpp-h.html#FANN_THRESHOLD_SYMMETRIC)
Regards,
N. Gravillon