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

neural_net::get_total_neurons() returns invalid value #117

Open
daedsidog opened this issue Apr 26, 2019 · 0 comments
Open

neural_net::get_total_neurons() returns invalid value #117

daedsidog opened this issue Apr 26, 2019 · 0 comments

Comments

@daedsidog
Copy link

daedsidog commented Apr 26, 2019

I have a net with 7 layers:
320 320 320 320 320 320 1

Created using the code:

std::vector<unsigned int> layers;
layers.push_back(320);
for (int i = 0; i < 5; ++i)
    layers.push_back(320);
layers.push_back(1);
ann.create_standard_array(7, layers.data());

In the net file, it is saved as:
layer_sizes=321 321 321 321 321 321 2
...which I assumed has no bearing on actual performance.
Except, that it does — while the input & output getting functions return the correct appropriate values, get_total_neurons() returns the ones saved in the net file, instead of real neurons.

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

1 participant