Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example1 always shows 1 or 0, even when output is {3,4,5,6} #54

Open
dvhx opened this issue Feb 3, 2023 · 1 comment
Open

Example1 always shows 1 or 0, even when output is {3,4,5,6} #54

dvhx opened this issue Feb 3, 2023 · 1 comment

Comments

@dvhx
Copy link

dvhx commented Feb 3, 2023

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.

@codeplea
Copy link
Owner

codeplea commented Feb 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants