{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/736","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/736/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/736/events","html_url":"https://github.com/dmlc/mxnet/issues/736","id":119158386,"number":736,"title":"NDArrayIter Shuffle Reproducibility","user":{"login":"jimxinbo","id":11510039,"avatar_url":"https://avatars.githubusercontent.com/u/11510039?v=3","gravatar_id":"","url":"https://api.github.com/users/jimxinbo","html_url":"https://github.com/jimxinbo","followers_url":"https://api.github.com/users/jimxinbo/followers","following_url":"https://api.github.com/users/jimxinbo/following{/other_user}","gists_url":"https://api.github.com/users/jimxinbo/gists{/gist_id}","starred_url":"https://api.github.com/users/jimxinbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimxinbo/subscriptions","organizations_url":"https://api.github.com/users/jimxinbo/orgs","repos_url":"https://api.github.com/users/jimxinbo/repos","events_url":"https://api.github.com/users/jimxinbo/events{/privacy}","received_events_url":"https://api.github.com/users/jimxinbo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-11-27T09:15:31Z","updated_at":"2015-11-28T02:39:59Z","closed_at":null,"body":"I cannot repeat the results every time I ran the same script.\r\n\r\nIf I fix some seeds on the initialization of the weights and set shuffle==False in mx.io.NDArrayIter. I can repeat the same results. But if I set shuffle==True in mx.io.NDArrayIter. Even by adding a mx.random.seed() before calling mx.io.NDArrayIter, I cannot get consistent results every time. \r\n\r\nIs this because I cannot seed the shuffle of ArrayIter by now? Any way around so that I can control the shuffling for repeating results?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/160242187","html_url":"https://github.com/dmlc/mxnet/issues/736#issuecomment-160242187","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/736","id":160242187,"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":"2015-11-28T02:39:59Z","updated_at":"2015-11-28T02:39:59Z","body":"You need to also seed numpy and random to guarantee reproducibility.\r\n@tqchen should we also seed those in mx.random.seed by default?"}}