{"action":"created","comment":{"url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/24379015","id":24379015,"diff_hunk":"@@ -48,6 +48,28 @@ def iterator(self, mode=None, batch_size=None, num_batches=None,\n             through the dataset and may potentially be shared by\n             multiple iterator objects simultaneously (see \"Notes\"\n             below).\n+        data_specs : (space, source) pair, optional\n+            `space` is an instance of `Space` (possibly a\n+            `CompositeSpace`), and `source` is a string (or tuple of\n+            strings if `space` is a `CompositeSpace`). `source` defines\n+            which data should be returned by the iterator (for instance\n+            'features', 'targets'), and `space` specifies in which\n+            format it will be returned. These specifications should be\n+            flat: if `space` is a `CompositeSpace`, the sub-spaces should","path":"pylearn2/datasets/dataset.py","position":20,"original_position":20,"commit_id":"205d2963b09a4a945813fcc50b15be65a3f680b8","original_commit_id":"0a6175130b96e371748de4b71bbb5a462693a0b5","user":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"body":"`space` does not have to be a `CompositeSpace` here, however it is valid to request a `CompositeSpace` with only one component.","created_at":"2015-02-10T00:15:42Z","updated_at":"2015-02-10T00:15:42Z","html_url":"https://github.com/lisa-lab/pylearn2/pull/1386#discussion_r24379015","pull_request_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386","_links":{"self":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/24379015"},"html":{"href":"https://github.com/lisa-lab/pylearn2/pull/1386#discussion_r24379015"},"pull_request":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386"}}},"pull_request":{"url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386","id":28851838,"html_url":"https://github.com/lisa-lab/pylearn2/pull/1386","diff_url":"https://github.com/lisa-lab/pylearn2/pull/1386.diff","patch_url":"https://github.com/lisa-lab/pylearn2/pull/1386.patch","issue_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1386","number":1386,"state":"open","locked":false,"title":"Update doc for data_specs in Dataset.iterator()","user":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-06T23:42:59Z","updated_at":"2015-02-10T00:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4844e7664ef1d75d20c8112cfdeffe7499f782f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386/commits","review_comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386/comments","review_comment_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1386/comments","statuses_url":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/205d2963b09a4a945813fcc50b15be65a3f680b8","head":{"label":"lamblin:update_doc","ref":"update_doc","sha":"205d2963b09a4a945813fcc50b15be65a3f680b8","user":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"repo":{"id":3595011,"name":"pylearn2","full_name":"lamblin/pylearn2","owner":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lamblin/pylearn2","description":"A Machine Learning library based on Theano","fork":true,"url":"https://api.github.com/repos/lamblin/pylearn2","forks_url":"https://api.github.com/repos/lamblin/pylearn2/forks","keys_url":"https://api.github.com/repos/lamblin/pylearn2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamblin/pylearn2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamblin/pylearn2/teams","hooks_url":"https://api.github.com/repos/lamblin/pylearn2/hooks","issue_events_url":"https://api.github.com/repos/lamblin/pylearn2/issues/events{/number}","events_url":"https://api.github.com/repos/lamblin/pylearn2/events","assignees_url":"https://api.github.com/repos/lamblin/pylearn2/assignees{/user}","branches_url":"https://api.github.com/repos/lamblin/pylearn2/branches{/branch}","tags_url":"https://api.github.com/repos/lamblin/pylearn2/tags","blobs_url":"https://api.github.com/repos/lamblin/pylearn2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamblin/pylearn2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamblin/pylearn2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamblin/pylearn2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamblin/pylearn2/statuses/{sha}","languages_url":"https://api.github.com/repos/lamblin/pylearn2/languages","stargazers_url":"https://api.github.com/repos/lamblin/pylearn2/stargazers","contributors_url":"https://api.github.com/repos/lamblin/pylearn2/contributors","subscribers_url":"https://api.github.com/repos/lamblin/pylearn2/subscribers","subscription_url":"https://api.github.com/repos/lamblin/pylearn2/subscription","commits_url":"https://api.github.com/repos/lamblin/pylearn2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamblin/pylearn2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamblin/pylearn2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamblin/pylearn2/issues/comments/{number}","contents_url":"https://api.github.com/repos/lamblin/pylearn2/contents/{+path}","compare_url":"https://api.github.com/repos/lamblin/pylearn2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamblin/pylearn2/merges","archive_url":"https://api.github.com/repos/lamblin/pylearn2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamblin/pylearn2/downloads","issues_url":"https://api.github.com/repos/lamblin/pylearn2/issues{/number}","pulls_url":"https://api.github.com/repos/lamblin/pylearn2/pulls{/number}","milestones_url":"https://api.github.com/repos/lamblin/pylearn2/milestones{/number}","notifications_url":"https://api.github.com/repos/lamblin/pylearn2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamblin/pylearn2/labels{/name}","releases_url":"https://api.github.com/repos/lamblin/pylearn2/releases{/id}","created_at":"2012-03-01T19:06:49Z","updated_at":"2014-09-07T04:02:50Z","pushed_at":"2015-02-10T00:08:27Z","git_url":"git://github.com/lamblin/pylearn2.git","ssh_url":"git@github.com:lamblin/pylearn2.git","clone_url":"https://github.com/lamblin/pylearn2.git","svn_url":"https://github.com/lamblin/pylearn2","homepage":"","size":12530,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"lisa-lab:master","ref":"master","sha":"c888de586d5ebd1d46d697b001e1427d328d41b3","user":{"login":"lisa-lab","id":178109,"avatar_url":"https://avatars.githubusercontent.com/u/178109?v=3","gravatar_id":"","url":"https://api.github.com/users/lisa-lab","html_url":"https://github.com/lisa-lab","followers_url":"https://api.github.com/users/lisa-lab/followers","following_url":"https://api.github.com/users/lisa-lab/following{/other_user}","gists_url":"https://api.github.com/users/lisa-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/lisa-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisa-lab/subscriptions","organizations_url":"https://api.github.com/users/lisa-lab/orgs","repos_url":"https://api.github.com/users/lisa-lab/repos","events_url":"https://api.github.com/users/lisa-lab/events{/privacy}","received_events_url":"https://api.github.com/users/lisa-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":1103054,"name":"pylearn2","full_name":"lisa-lab/pylearn2","owner":{"login":"lisa-lab","id":178109,"avatar_url":"https://avatars.githubusercontent.com/u/178109?v=3","gravatar_id":"","url":"https://api.github.com/users/lisa-lab","html_url":"https://github.com/lisa-lab","followers_url":"https://api.github.com/users/lisa-lab/followers","following_url":"https://api.github.com/users/lisa-lab/following{/other_user}","gists_url":"https://api.github.com/users/lisa-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/lisa-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisa-lab/subscriptions","organizations_url":"https://api.github.com/users/lisa-lab/orgs","repos_url":"https://api.github.com/users/lisa-lab/repos","events_url":"https://api.github.com/users/lisa-lab/events{/privacy}","received_events_url":"https://api.github.com/users/lisa-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lisa-lab/pylearn2","description":"A Machine Learning library based on Theano","fork":false,"url":"https://api.github.com/repos/lisa-lab/pylearn2","forks_url":"https://api.github.com/repos/lisa-lab/pylearn2/forks","keys_url":"https://api.github.com/repos/lisa-lab/pylearn2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lisa-lab/pylearn2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lisa-lab/pylearn2/teams","hooks_url":"https://api.github.com/repos/lisa-lab/pylearn2/hooks","issue_events_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/events{/number}","events_url":"https://api.github.com/repos/lisa-lab/pylearn2/events","assignees_url":"https://api.github.com/repos/lisa-lab/pylearn2/assignees{/user}","branches_url":"https://api.github.com/repos/lisa-lab/pylearn2/branches{/branch}","tags_url":"https://api.github.com/repos/lisa-lab/pylearn2/tags","blobs_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/{sha}","languages_url":"https://api.github.com/repos/lisa-lab/pylearn2/languages","stargazers_url":"https://api.github.com/repos/lisa-lab/pylearn2/stargazers","contributors_url":"https://api.github.com/repos/lisa-lab/pylearn2/contributors","subscribers_url":"https://api.github.com/repos/lisa-lab/pylearn2/subscribers","subscription_url":"https://api.github.com/repos/lisa-lab/pylearn2/subscription","commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/comments/{number}","contents_url":"https://api.github.com/repos/lisa-lab/pylearn2/contents/{+path}","compare_url":"https://api.github.com/repos/lisa-lab/pylearn2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lisa-lab/pylearn2/merges","archive_url":"https://api.github.com/repos/lisa-lab/pylearn2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lisa-lab/pylearn2/downloads","issues_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues{/number}","pulls_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls{/number}","milestones_url":"https://api.github.com/repos/lisa-lab/pylearn2/milestones{/number}","notifications_url":"https://api.github.com/repos/lisa-lab/pylearn2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lisa-lab/pylearn2/labels{/name}","releases_url":"https://api.github.com/repos/lisa-lab/pylearn2/releases{/id}","created_at":"2010-11-22T18:00:50Z","updated_at":"2015-02-09T20:40:58Z","pushed_at":"2015-02-09T20:40:58Z","git_url":"git://github.com/lisa-lab/pylearn2.git","ssh_url":"git@github.com:lisa-lab/pylearn2.git","clone_url":"https://github.com/lisa-lab/pylearn2.git","svn_url":"https://github.com/lisa-lab/pylearn2","homepage":"","size":689905,"stargazers_count":1237,"watchers_count":1237,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":503,"mirror_url":null,"open_issues_count":217,"forks":503,"open_issues":217,"watchers":1237,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386"},"html":{"href":"https://github.com/lisa-lab/pylearn2/pull/1386"},"issue":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1386"},"comments":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1386/comments"},"review_comments":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386/comments"},"review_comment":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1386/commits"},"statuses":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/205d2963b09a4a945813fcc50b15be65a3f680b8"}}}}