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

Using datasets of length 100+ can return NaN in prediction #52

Open
D-Nice opened this issue May 29, 2017 · 4 comments
Open

Using datasets of length 100+ can return NaN in prediction #52

D-Nice opened this issue May 29, 2017 · 4 comments

Comments

@D-Nice
Copy link

D-Nice commented May 29, 2017

Trying with varying datasets of 2 inputs, if the total length of the dataset exceeds 100, with normalized inputs of -1.00 to 1.00, the predict method will tend to return NaN. Default htan is being used. Increasing hidden layers and units seems to help in increasing the total length, but still is this to be expected, I would assume that the neural network should be able to come up with at least some sort of prediction after several iterations.

@stevenmiller888
Copy link
Owner

I'm unable to replicate this issue. Can you show me your training data and network configuration?

@D-Nice
Copy link
Author

D-Nice commented Jun 2, 2017

Apologies, it seems to have been an issue with the inputs being incorrectly normalized from my end, after I just retried and took a deeper look. So the inputs were always being set to 1. Still, even if all inputs are always a constant number, is this something that should still happen, where it returns NaN? Feel free to close this issue after answering :)

@stevenmiller888
Copy link
Owner

That is not expected. I've been able to replicate with a constant number as the input. I'm not sure what's causing this. Will try to investigate soon.

@stiff
Copy link

stiff commented Sep 21, 2017

It seems like under certain circumstances some rounding error creeps in and damages everything. I tried network with 20 hidden layers of 20 units, and it's almost always returned same result for any input. Also after different invocations of learning the same data I get different predictions, is it expected behaviour?

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

3 participants