{"action":"created","comment":{"url":"https://api.github.com/repos/bartvm/fuel/pulls/comments/27328649","id":27328649,"diff_hunk":"@@ -0,0 +1,64 @@\n+import os\n+\n+import fuel\n+import h5py\n+import numpy\n+\n+default_directory = os.path.join(fuel.config.data_path, 'binarized_mnist')\n+default_save_path = os.path.join(default_directory, 'binarized_mnist.hdf5')\n+\n+\n+def binarized_mnist(directory=None, save_path=None):\n+    \"\"\"Converts the binarized MNIST dataset to HDF5.\n+\n+    Converts the binarized MNIST dataset used in R. Salakhutdinov's DBN\n+    paper [DBN] to an HDF5 dataset compatible with\n+    :class:`fuel.datasets.binarized_mnist.BinarizedMNIST`.","path":"fuel/converters/binarized_mnist.py","position":16,"original_position":16,"commit_id":"fe52c4ebb6642f96301b1030791401869d73cc07","original_commit_id":"fe52c4ebb6642f96301b1030791401869d73cc07","user":{"login":"vdumoulin","id":2034067,"avatar_url":"https://avatars.githubusercontent.com/u/2034067?v=3","gravatar_id":"","url":"https://api.github.com/users/vdumoulin","html_url":"https://github.com/vdumoulin","followers_url":"https://api.github.com/users/vdumoulin/followers","following_url":"https://api.github.com/users/vdumoulin/following{/other_user}","gists_url":"https://api.github.com/users/vdumoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/vdumoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdumoulin/subscriptions","organizations_url":"https://api.github.com/users/vdumoulin/orgs","repos_url":"https://api.github.com/users/vdumoulin/repos","events_url":"https://api.github.com/users/vdumoulin/events{/privacy}","received_events_url":"https://api.github.com/users/vdumoulin/received_events","type":"User","site_admin":false},"body":"It [already is](https://github.com/bartvm/fuel/blob/master/fuel/datasets/__init__.py#L5). I guess I should change the reference here, though.\r\n\r\nThat reminds me of a question I had: Scrutinizer complains about circular imports between `fuel.datasets` and its sub-modules, should we do something about it?","created_at":"2015-03-27T20:30:53Z","updated_at":"2015-03-27T20:30:53Z","html_url":"https://github.com/bartvm/fuel/pull/54#discussion_r27328649","pull_request_url":"https://api.github.com/repos/bartvm/fuel/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/comments/27328649"},"html":{"href":"https://github.com/bartvm/fuel/pull/54#discussion_r27328649"},"pull_request":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/bartvm/fuel/pulls/54","id":32038307,"html_url":"https://github.com/bartvm/fuel/pull/54","diff_url":"https://github.com/bartvm/fuel/pull/54.diff","patch_url":"https://github.com/bartvm/fuel/pull/54.patch","issue_url":"https://api.github.com/repos/bartvm/fuel/issues/54","number":54,"state":"open","locked":false,"title":"HDF5 dataset refactor","user":{"login":"vdumoulin","id":2034067,"avatar_url":"https://avatars.githubusercontent.com/u/2034067?v=3","gravatar_id":"","url":"https://api.github.com/users/vdumoulin","html_url":"https://github.com/vdumoulin","followers_url":"https://api.github.com/users/vdumoulin/followers","following_url":"https://api.github.com/users/vdumoulin/following{/other_user}","gists_url":"https://api.github.com/users/vdumoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/vdumoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdumoulin/subscriptions","organizations_url":"https://api.github.com/users/vdumoulin/orgs","repos_url":"https://api.github.com/users/vdumoulin/repos","events_url":"https://api.github.com/users/vdumoulin/events{/privacy}","received_events_url":"https://api.github.com/users/vdumoulin/received_events","type":"User","site_admin":false},"body":"This PR aims at\r\n\r\n* introducing a dataset conversion framework, and\r\n* refactoring one built-in dataset to serve as reference for future PRs.","created_at":"2015-03-26T17:01:57Z","updated_at":"2015-03-27T20:30:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"868f9acf180960f94a72cb811c131e444e59c9a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bartvm/fuel/pulls/54/commits","review_comments_url":"https://api.github.com/repos/bartvm/fuel/pulls/54/comments","review_comment_url":"https://api.github.com/repos/bartvm/fuel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bartvm/fuel/issues/54/comments","statuses_url":"https://api.github.com/repos/bartvm/fuel/statuses/fe52c4ebb6642f96301b1030791401869d73cc07","head":{"label":"vdumoulin:hdf5_dataset_refactor","ref":"hdf5_dataset_refactor","sha":"fe52c4ebb6642f96301b1030791401869d73cc07","user":{"login":"vdumoulin","id":2034067,"avatar_url":"https://avatars.githubusercontent.com/u/2034067?v=3","gravatar_id":"","url":"https://api.github.com/users/vdumoulin","html_url":"https://github.com/vdumoulin","followers_url":"https://api.github.com/users/vdumoulin/followers","following_url":"https://api.github.com/users/vdumoulin/following{/other_user}","gists_url":"https://api.github.com/users/vdumoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/vdumoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdumoulin/subscriptions","organizations_url":"https://api.github.com/users/vdumoulin/orgs","repos_url":"https://api.github.com/users/vdumoulin/repos","events_url":"https://api.github.com/users/vdumoulin/events{/privacy}","received_events_url":"https://api.github.com/users/vdumoulin/received_events","type":"User","site_admin":false},"repo":{"id":30834931,"name":"fuel","full_name":"vdumoulin/fuel","owner":{"login":"vdumoulin","id":2034067,"avatar_url":"https://avatars.githubusercontent.com/u/2034067?v=3","gravatar_id":"","url":"https://api.github.com/users/vdumoulin","html_url":"https://github.com/vdumoulin","followers_url":"https://api.github.com/users/vdumoulin/followers","following_url":"https://api.github.com/users/vdumoulin/following{/other_user}","gists_url":"https://api.github.com/users/vdumoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/vdumoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdumoulin/subscriptions","organizations_url":"https://api.github.com/users/vdumoulin/orgs","repos_url":"https://api.github.com/users/vdumoulin/repos","events_url":"https://api.github.com/users/vdumoulin/events{/privacy}","received_events_url":"https://api.github.com/users/vdumoulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vdumoulin/fuel","description":"A data pipeline framework for machine learning","fork":true,"url":"https://api.github.com/repos/vdumoulin/fuel","forks_url":"https://api.github.com/repos/vdumoulin/fuel/forks","keys_url":"https://api.github.com/repos/vdumoulin/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vdumoulin/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vdumoulin/fuel/teams","hooks_url":"https://api.github.com/repos/vdumoulin/fuel/hooks","issue_events_url":"https://api.github.com/repos/vdumoulin/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/vdumoulin/fuel/events","assignees_url":"https://api.github.com/repos/vdumoulin/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/vdumoulin/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/vdumoulin/fuel/tags","blobs_url":"https://api.github.com/repos/vdumoulin/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vdumoulin/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vdumoulin/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/vdumoulin/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vdumoulin/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/vdumoulin/fuel/languages","stargazers_url":"https://api.github.com/repos/vdumoulin/fuel/stargazers","contributors_url":"https://api.github.com/repos/vdumoulin/fuel/contributors","subscribers_url":"https://api.github.com/repos/vdumoulin/fuel/subscribers","subscription_url":"https://api.github.com/repos/vdumoulin/fuel/subscription","commits_url":"https://api.github.com/repos/vdumoulin/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/vdumoulin/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/vdumoulin/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/vdumoulin/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/vdumoulin/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/vdumoulin/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vdumoulin/fuel/merges","archive_url":"https://api.github.com/repos/vdumoulin/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vdumoulin/fuel/downloads","issues_url":"https://api.github.com/repos/vdumoulin/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/vdumoulin/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/vdumoulin/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/vdumoulin/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vdumoulin/fuel/labels{/name}","releases_url":"https://api.github.com/repos/vdumoulin/fuel/releases{/id}","created_at":"2015-02-15T17:25:11Z","updated_at":"2015-03-27T17:00:34Z","pushed_at":"2015-03-27T17:51:35Z","git_url":"git://github.com/vdumoulin/fuel.git","ssh_url":"git@github.com:vdumoulin/fuel.git","clone_url":"https://github.com/vdumoulin/fuel.git","svn_url":"https://github.com/vdumoulin/fuel","homepage":null,"size":358,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"bartvm:master","ref":"master","sha":"6ad138dfa18a43ca3bbb587f1d06dd0f6a49241c","user":{"login":"bartvm","id":2299595,"avatar_url":"https://avatars.githubusercontent.com/u/2299595?v=3","gravatar_id":"","url":"https://api.github.com/users/bartvm","html_url":"https://github.com/bartvm","followers_url":"https://api.github.com/users/bartvm/followers","following_url":"https://api.github.com/users/bartvm/following{/other_user}","gists_url":"https://api.github.com/users/bartvm/gists{/gist_id}","starred_url":"https://api.github.com/users/bartvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartvm/subscriptions","organizations_url":"https://api.github.com/users/bartvm/orgs","repos_url":"https://api.github.com/users/bartvm/repos","events_url":"https://api.github.com/users/bartvm/events{/privacy}","received_events_url":"https://api.github.com/users/bartvm/received_events","type":"User","site_admin":false},"repo":{"id":30722866,"name":"fuel","full_name":"bartvm/fuel","owner":{"login":"bartvm","id":2299595,"avatar_url":"https://avatars.githubusercontent.com/u/2299595?v=3","gravatar_id":"","url":"https://api.github.com/users/bartvm","html_url":"https://github.com/bartvm","followers_url":"https://api.github.com/users/bartvm/followers","following_url":"https://api.github.com/users/bartvm/following{/other_user}","gists_url":"https://api.github.com/users/bartvm/gists{/gist_id}","starred_url":"https://api.github.com/users/bartvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartvm/subscriptions","organizations_url":"https://api.github.com/users/bartvm/orgs","repos_url":"https://api.github.com/users/bartvm/repos","events_url":"https://api.github.com/users/bartvm/events{/privacy}","received_events_url":"https://api.github.com/users/bartvm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartvm/fuel","description":"A data pipeline framework for machine learning","fork":false,"url":"https://api.github.com/repos/bartvm/fuel","forks_url":"https://api.github.com/repos/bartvm/fuel/forks","keys_url":"https://api.github.com/repos/bartvm/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartvm/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartvm/fuel/teams","hooks_url":"https://api.github.com/repos/bartvm/fuel/hooks","issue_events_url":"https://api.github.com/repos/bartvm/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/bartvm/fuel/events","assignees_url":"https://api.github.com/repos/bartvm/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/bartvm/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/bartvm/fuel/tags","blobs_url":"https://api.github.com/repos/bartvm/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartvm/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartvm/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartvm/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartvm/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/bartvm/fuel/languages","stargazers_url":"https://api.github.com/repos/bartvm/fuel/stargazers","contributors_url":"https://api.github.com/repos/bartvm/fuel/contributors","subscribers_url":"https://api.github.com/repos/bartvm/fuel/subscribers","subscription_url":"https://api.github.com/repos/bartvm/fuel/subscription","commits_url":"https://api.github.com/repos/bartvm/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartvm/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartvm/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartvm/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartvm/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/bartvm/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartvm/fuel/merges","archive_url":"https://api.github.com/repos/bartvm/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartvm/fuel/downloads","issues_url":"https://api.github.com/repos/bartvm/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/bartvm/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/bartvm/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/bartvm/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartvm/fuel/labels{/name}","releases_url":"https://api.github.com/repos/bartvm/fuel/releases{/id}","created_at":"2015-02-12T20:42:44Z","updated_at":"2015-03-27T13:26:17Z","pushed_at":"2015-03-27T17:51:36Z","git_url":"git://github.com/bartvm/fuel.git","ssh_url":"git@github.com:bartvm/fuel.git","clone_url":"https://github.com/bartvm/fuel.git","svn_url":"https://github.com/bartvm/fuel","homepage":null,"size":1537,"stargazers_count":41,"watchers_count":41,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":21,"forks":26,"open_issues":21,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/54"},"html":{"href":"https://github.com/bartvm/fuel/pull/54"},"issue":{"href":"https://api.github.com/repos/bartvm/fuel/issues/54"},"comments":{"href":"https://api.github.com/repos/bartvm/fuel/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bartvm/fuel/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/bartvm/fuel/statuses/fe52c4ebb6642f96301b1030791401869d73cc07"}}}}