genann
genann copied to clipboard
Example1 always shows 1 or 0, even when output is {3,4,5,6}
In example1.c I changed output to:
const double output[4] = {3, 4, 5, 6};
Compiled and re-run example1 and I still see only 1 and 0 as a result.
Sigmoid activation, used by default, can return only values from 0 to 1.
You could try something like
const double output[4] = {0.3, 0.4, 0.5, 0.6};
to bring the training data in range, or you could change the output activation to genann_act_linear which will allow it to hit those higher values.