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

RBFNetwork.cs - totalNumHiddenNeurons #102

Open
EdWood1994 opened this issue Oct 15, 2016 · 0 comments
Open

RBFNetwork.cs - totalNumHiddenNeurons #102

EdWood1994 opened this issue Oct 15, 2016 · 0 comments
Milestone

Comments

@EdWood1994
Copy link

EdWood1994 commented Oct 15, 2016

Maybe I miss something, but I think there is a bug on the line 232 in RBFNetwork.cs:

var expectedSideLength = (int) Math.Pow(totalNumHiddenNeurons, 1.0d/dimensions); 
double cmp = Math.Pow(totalNumHiddenNeurons, 1.0d/dimensions); 
if (expectedSideLength != cmp) -> error

these two variables can't be equal, because (int) rounds the number. It's coincidence that it works for XOR example, it won't work with different dimenson like 19 for example.

@jeffheaton jeffheaton added this to the Encog 3.4 milestone Dec 18, 2016
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