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

System.ArgumentOutOfRangeException when i try to see hidden neuron #106

Open
Spocher opened this issue Apr 26, 2017 · 2 comments
Open

System.ArgumentOutOfRangeException when i try to see hidden neuron #106

Spocher opened this issue Apr 26, 2017 · 2 comments

Comments

@Spocher
Copy link

Spocher commented Apr 26, 2017

I consruct a simple network
Network = new BasicNetwork();
Network.AddLayer(new BasicLayer(null, true, 2));
Network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, 3));
Network.AddLayer(new BasicLayer(new ActivationSigmoid(), false, 1));
Network.Structure.FinalizeStructure();
Network.Reset();

And when i try to see structure network
Console.WriteLine(string.Format("HiddenLayers {0}", Network.Structure.Layers.Count - 2));//1 input, 1 output
Console.WriteLine(string.Format("HiddenUnits {0}", Network.Structure.Layers[1].NeuronCount));

HiddenLayers -good
HiddenUnits - System.ArgumentOutOfRangeException

Why is that?

@jeroldhaas
Copy link
Contributor

Console.WriteLine(string.Format("HiddenUnits: {0}", Network.GetLayerNeuronCount(1) ));

@jeroldhaas
Copy link
Contributor

Looking at Network.Structure.Layers (which is a NeuralStructure type), it looks like the Layers property's private field is set readonly. This ultimately affects FinalizeStructure's ability to set properties of the layers.

I'll see if I can add a test case and a modification to the NeuralStructure class.

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