-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Input Size always 20 #187
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
Comments
Can you share a code sample for context? |
My testing environment is pretty much this: https://itnext.io/you-can-build-a-neural-network-in-javascript-even-if-you-dont-really-understand-neural-networks-e63e12713a3 |
@robertleeplummerjr I just saw your anwer to #188 - I guess I just need to fill the training strings with spaces to allow for longer inputs? I just checked, my shortest training string is exactly 20 characters. Is there a way to get around this? Maybe use a different network? I want to analyze a string of any length.
|
@konnextv You can use Also, please read this: #188 (comment) |
@mubaidr Yes I saw that. Just wondered if the network could handle another size of input in order to get the best results (adding spaces to the strings cannot be the best method imo) |
ty all for your input to help solve this! |
What is wrong?
Whatever array I feed into net.run(), it will always only evaluate 20 items. It will fail on less and stay the same whatever the values after the 20th are.
I already found that one object property is NeuralNetwork.sizes which is [20,10,2] by default but I can't find a way to change this.
The text was updated successfully, but these errors were encountered: