{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/1281","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/1281/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/1281/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/1281/events","html_url":"https://github.com/dmlc/mxnet/issues/1281","id":126810134,"number":1281,"title":"how to prepare data for mxnet.io.NDArrayIter","user":{"login":"qianguih","id":15318002,"avatar_url":"https://avatars.githubusercontent.com/u/15318002?v=3","gravatar_id":"","url":"https://api.github.com/users/qianguih","html_url":"https://github.com/qianguih","followers_url":"https://api.github.com/users/qianguih/followers","following_url":"https://api.github.com/users/qianguih/following{/other_user}","gists_url":"https://api.github.com/users/qianguih/gists{/gist_id}","starred_url":"https://api.github.com/users/qianguih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianguih/subscriptions","organizations_url":"https://api.github.com/users/qianguih/orgs","repos_url":"https://api.github.com/users/qianguih/repos","events_url":"https://api.github.com/users/qianguih/events{/privacy}","received_events_url":"https://api.github.com/users/qianguih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-15T05:26:43Z","updated_at":"2016-01-15T06:36:15Z","closed_at":null,"body":"Hi, there,\r\n    I am a little confused about the usage of mxnet.io.NDArrayIter. I have read the documentation here.http://mxnet.readthedocs.org/en/latest/python/io.html#io-api-reference. It suggested to call it in this way:  \r\nmxnet.io.NDArrayIter(data, label=data_label, batch_size=1, shuffle=False, last_batch_handle='pad') \r\n\r\nHow should we store the training data in an array data and its label in an array data_label. \r\n\r\nSpecifically, I want to train a Lenet for MNIST. So, I get a numpy array of size (60000,28,28) and another one of size (60000,1) for labels. How can I feed them to a mxnet model for training?\r\n\r\n    \r\n\r\n  \r\n\r\n   \r\n        \r\n\r\n\r\n\r\n    \r\n\r\n   "},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/171883147","html_url":"https://github.com/dmlc/mxnet/issues/1281#issuecomment-171883147","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/1281","id":171883147,"user":{"login":"piiswrong","id":568948,"avatar_url":"https://avatars.githubusercontent.com/u/568948?v=3","gravatar_id":"","url":"https://api.github.com/users/piiswrong","html_url":"https://github.com/piiswrong","followers_url":"https://api.github.com/users/piiswrong/followers","following_url":"https://api.github.com/users/piiswrong/following{/other_user}","gists_url":"https://api.github.com/users/piiswrong/gists{/gist_id}","starred_url":"https://api.github.com/users/piiswrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piiswrong/subscriptions","organizations_url":"https://api.github.com/users/piiswrong/orgs","repos_url":"https://api.github.com/users/piiswrong/repos","events_url":"https://api.github.com/users/piiswrong/events{/privacy}","received_events_url":"https://api.github.com/users/piiswrong/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T06:36:15Z","updated_at":"2016-01-15T06:36:15Z","body":"if you are feeding to conv layers, reshape to (60000, 1, 28, 28)"}}