{"action":"created","issue":{"url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1","labels_url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1/comments","events_url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1/events","html_url":"https://github.com/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1","id":98774199,"number":1,"title":"NullPointerException whilst attempting to fit the dataSetIterator into the multiLayerNetwork","user":{"login":"KeironO","id":4386515,"avatar_url":"https://avatars.githubusercontent.com/u/4386515?v=3","gravatar_id":"","url":"https://api.github.com/users/KeironO","html_url":"https://github.com/KeironO","followers_url":"https://api.github.com/users/KeironO/followers","following_url":"https://api.github.com/users/KeironO/following{/other_user}","gists_url":"https://api.github.com/users/KeironO/gists{/gist_id}","starred_url":"https://api.github.com/users/KeironO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeironO/subscriptions","organizations_url":"https://api.github.com/users/KeironO/orgs","repos_url":"https://api.github.com/users/KeironO/repos","events_url":"https://api.github.com/users/KeironO/events{/privacy}","received_events_url":"https://api.github.com/users/KeironO/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T15:54:09Z","updated_at":"2015-08-03T16:04:45Z","closed_at":"2015-08-03T16:04:45Z","body":"The following configuration is throwing up a ```NullPointerException```\r\n\r\n```\r\n        RecordReader recordReader = new ImageRecordReader(numInputRows, numInputCols, true);\r\n        recordReader.initialize(new FileSplit(new File(labeledPath)));\r\n        DataSetIterator dataSetIterator = new RecordReaderDataSetIterator(recordReader, numImages, numInput, labels.size());\r\n```\r\n\r\nI have looked at the jdb, and the image data is loading without any obvious issue. This error arrises regardless of what ```MultiLayerConfiguration``` is being used.\r\n\r\nStack trace below:\r\n```\r\nException in thread \"main\" java.lang.NullPointerException\r\n\tat org.deeplearning4j.nn.layers.feedforward.rbm.RBM.computeGradientAndScore(RBM.java:164)\r\n\tat org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:114)\r\n\tat org.deeplearning4j.optimize.solvers.BaseOptimizer.optimize(BaseOptimizer.java:131)\r\n\tat org.deeplearning4j.optimize.Solver.optimize(Solver.java:52)\r\n\tat org.deeplearning4j.nn.layers.BaseLayer.fit(BaseLayer.java:493)\r\n\tat org.deeplearning4j.nn.layers.feedforward.rbm.RBM.fit(RBM.java:395)\r\n\tat org.deeplearning4j.nn.multilayer.MultiLayerNetwork.pretrain(MultiLayerNetwork.java:165)\r\n\tat org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1030)\r\n\tat org.deeplearning4j.Project.FloweringAndNotFloweringSmallScale.main(FloweringAndNotFloweringSmallScale.java:88)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)\r\n```"},"comment":{"url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/comments/127288838","html_url":"https://github.com/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1#issuecomment-127288838","issue_url":"https://api.github.com/repos/bio-ontology-research-group/neural-network-plant-trait-classification/issues/1","id":127288838,"user":{"login":"KeironO","id":4386515,"avatar_url":"https://avatars.githubusercontent.com/u/4386515?v=3","gravatar_id":"","url":"https://api.github.com/users/KeironO","html_url":"https://github.com/KeironO","followers_url":"https://api.github.com/users/KeironO/followers","following_url":"https://api.github.com/users/KeironO/following{/other_user}","gists_url":"https://api.github.com/users/KeironO/gists{/gist_id}","starred_url":"https://api.github.com/users/KeironO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeironO/subscriptions","organizations_url":"https://api.github.com/users/KeironO/orgs","repos_url":"https://api.github.com/users/KeironO/repos","events_url":"https://api.github.com/users/KeironO/events{/privacy}","received_events_url":"https://api.github.com/users/KeironO/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T16:04:45Z","updated_at":"2015-08-03T16:04:45Z","body":"Fixed. The API for DL4J has changed a little, and it's now imperative to include specific parameters within the ```MultiLayerConfiguration```"}}