-
Notifications
You must be signed in to change notification settings - Fork 125
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
Assignment 2 : Neural network bits fail with java.lang.IndexOutOfBoundsException #6
Comments
|
I figured that this can be resolved by properly setting the input layer size in the specific files... I'll let this issue stay 'open' in case you'd like help updating the README (post a comment and I can create a pull-request). Thanks for the project, Chad! |
If I'm following correctly you're saying the |
agree, ran into this exact issue. thanks for filling the issue @timuster. happy to help move up those settings once i finish catching up on this dang assignment... |
Running the following files with Jython throws an Index out of bounds error (when using CreditApprovalData or PenDigitsData).
$ jython NN-Backprop.py
Using seed 653091685
Error results for Backprop
Traceback (most recent call last):
File "NN-Backprop.py", line 48, in
main()
File "NN-Backprop.py", line 38, in main
train(BatchBackPropagationTrainer(data_set, classification_network, measure, rule), classification_network,
File "/CS-7641-assignments/assignment2/base.py", line 132, in train
oa.train()
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:440)
at func.nn.Layer.getNode(Layer.java:43)
at func.nn.Layer.setActivations(Layer.java:60)
at func.nn.LayeredNetwork.setInputValues(LayeredNetwork.java:53)
at func.nn.backprop.BatchBackPropagationTrainer.train(BatchBackPropagationTrainer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
java.lang.IndexOutOfBoundsException: java.lang.IndexOutOfBoundsException: Index 8 out-of-bounds for length 8
`
The text was updated successfully, but these errors were encountered: