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

modify the if statment which check if center[i] at the boundary of th… #239

Merged
merged 1 commit into from Sep 3, 2017

Conversation

xietiantian
Copy link
Contributor

modify the if statment which check if center[i] at the boundary of the neuron mesh
the boundary of the neuron mesh is minPosition and maxPosition, two parameters of "setRBFCentersAndWidthsEqualSpacing" method, right?
They may have various values, though typically 0 and 1. For example in the constructor "public RBFNetwork(final int inputCount, final int hiddenCount, final int outputCount, final RBFEnum t)", setRBFCentersAndWidthsEqualSpacing method is called with patameters minPosition = -1 and maxPosition = 1
so, I think the boundary check should be like this:
if ((centers[i][z] == minPosition) || (centers[i][z] == maxPosition))

@jeffheaton
Copy link
Owner

Thank you I will look at this soon for the next release of Encog.

@jeffheaton jeffheaton added this to the Encog v3.4.1 milestone Sep 3, 2017
@jeffheaton jeffheaton added the Bug label Sep 3, 2017
@jeffheaton
Copy link
Owner

Agree with this change, thanks! Will add to C# too.

@jeffheaton jeffheaton merged commit 0266b18 into jeffheaton:master Sep 3, 2017
jeffheaton pushed a commit to jeffheaton/encog-dotnet-core that referenced this pull request Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants