Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assignment 2 : Neural network bits fail with java.lang.IndexOutOfBoundsException

See original GitHub issue

Running the following files with Jython throws an Index out of bounds error (when using CreditApprovalData or PenDigitsData).


$ jython

Using seed 653091685

Error results for Backprop

Traceback (most recent call last): File “”, line 48, in <module> main() File “”, line 38, in main train(BatchBackPropagationTrainer(data_set, classification_network, measure, rule), classification_network, File “/CS-7641-assignments/assignment2/”, line 132, in train oa.train() at java.base/jdk.internal.util.Preconditions.outOfBounds( at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex( at java.base/jdk.internal.util.Preconditions.checkIndex( at java.base/java.util.Objects.checkIndex( at java.base/java.util.ArrayList.get( at func.nn.Layer.getNode( at func.nn.Layer.setActivations( at func.nn.LayeredNetwork.setInputValues( at func.nn.backprop.BatchBackPropagationTrainer.train( at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke( at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( at java.base/java.lang.reflect.Method.invoke(

java.lang.IndexOutOfBoundsException: java.lang.IndexOutOfBoundsException: Index 8 out-of-bounds for length 8 `

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

cmaroncommented, Mar 7, 2019

@timuster and @sw-yx I’ve updated the readme, let me know if you have more to add.

cmaroncommented, Feb 27, 2019

If I’m following correctly you’re saying the INPUT_LAYER and OUTPUT_LAYER settings have to be changed for the data sets and that’s not clear in the readme? If so feel free to open a PR. An alternative might be to update in order specify these settings in one place, similar to how DS_NAME is set there. In fact all those layer settings should probably be in

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found