{"action":"opened","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/853","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/853/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/853/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/853","id":116038911,"number":853,"title":"HistogramIterationListener issue with pretrain layers","user":{"login":"shankarlal","id":1067228,"avatar_url":"https://avatars.githubusercontent.com/u/1067228?v=3","gravatar_id":"","url":"https://api.github.com/users/shankarlal","html_url":"https://github.com/shankarlal","followers_url":"https://api.github.com/users/shankarlal/followers","following_url":"https://api.github.com/users/shankarlal/following{/other_user}","gists_url":"https://api.github.com/users/shankarlal/gists{/gist_id}","starred_url":"https://api.github.com/users/shankarlal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankarlal/subscriptions","organizations_url":"https://api.github.com/users/shankarlal/orgs","repos_url":"https://api.github.com/users/shankarlal/repos","events_url":"https://api.github.com/users/shankarlal/events{/privacy}","received_events_url":"https://api.github.com/users/shankarlal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T06:28:13Z","updated_at":"2015-11-10T06:28:13Z","closed_at":null,"body":"When using the histogram listener in the DBNIrisExample, it throws the following exception. Alex commented that it works fine for backprop, but has an issue with the pretrain layers \r\n\r\njava.lang.ArrayIndexOutOfBoundsException: -1\r\nat java.util.ArrayList.elementData(ArrayList.java:400)\r\nat java.util.ArrayList.get(ArrayList.java:413)\r\nat org.deeplearning4j.ui.weights.HistogramIterationListener.iterationDone(HistogramIterationListener.java:103)\r\nat org.deeplearning4j.optimize.solvers.BaseOptimizer.optimize(BaseOptimizer.java:189)\r\nat org.deeplearning4j.optimize.Solver.optimize(Solver.java:52)\r\nat org.deeplearning4j.nn.layers.BaseLayer.fit(BaseLayer.java:471)\r\nat org.deeplearning4j.nn.layers.feedforward.rbm.RBM.fit(RBM.java:410)\r\nat org.deeplearning4j.nn.multilayer.MultiLayerNetwork.pretrain(MultiLayerNetwork.java:214)\r\nat org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1336)\r\nat org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1382)\r\nat org.deeplearning4j.examples.deepbelief.DBNIrisExample.main(DBNIrisExample.java:112)"}}