{"action":"created","comment":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/comments/84223099","pull_request_review_id":5011922,"id":84223099,"diff_hunk":"@@ -176,10 +182,16 @@ def get_cross_validation_datasets_random(dataset, n_fold):\n     Args:\n         dataset: Dataset to split.\n         n_fold (int): Number of splits for cross validation.\n+        seed (int): Seed the generator used for the permutation of indexes.\n+            If an integer is specified, it is guaranteed that each sample\n+            in the given dataset always belongs to a specific subset.\n+            If ``None``, the permutation is changed randomly.","path":"chainer/datasets/sub_dataset.py","position":46,"original_position":46,"commit_id":"dd4d9ebdea0bdf2609a7fb45e3f33de8811bb868","original_commit_id":"dd4d9ebdea0bdf2609a7fb45e3f33de8811bb868","user":{"login":"muupan","id":815970,"avatar_url":"https://avatars.githubusercontent.com/u/815970?v=3","gravatar_id":"","url":"https://api.github.com/users/muupan","html_url":"https://github.com/muupan","followers_url":"https://api.github.com/users/muupan/followers","following_url":"https://api.github.com/users/muupan/following{/other_user}","gists_url":"https://api.github.com/users/muupan/gists{/gist_id}","starred_url":"https://api.github.com/users/muupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muupan/subscriptions","organizations_url":"https://api.github.com/users/muupan/orgs","repos_url":"https://api.github.com/users/muupan/repos","events_url":"https://api.github.com/users/muupan/events{/privacy}","received_events_url":"https://api.github.com/users/muupan/received_events","type":"User","site_admin":false},"body":"Ditto.","created_at":"2016-10-20T07:06:54Z","updated_at":"2016-10-20T07:06:54Z","html_url":"https://github.com/pfnet/chainer/pull/1795#discussion_r84223099","pull_request_url":"https://api.github.com/repos/pfnet/chainer/pulls/1795","_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments/84223099"},"html":{"href":"https://github.com/pfnet/chainer/pull/1795#discussion_r84223099"},"pull_request":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1795"}}},"pull_request":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/1795","id":90013763,"html_url":"https://github.com/pfnet/chainer/pull/1795","diff_url":"https://github.com/pfnet/chainer/pull/1795.diff","patch_url":"https://github.com/pfnet/chainer/pull/1795.patch","issue_url":"https://api.github.com/repos/pfnet/chainer/issues/1795","number":1795,"state":"open","locked":false,"title":"Add seed option to split functions","user":{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false},"body":"This PR aims to add ``seed`` option to ``split_dataset_random()`` and ``get_cross_validation_datasets_random()`` functions.\r\nIt would be useful when you split a dataset to train and test datasets, train a NN with the train dataset, and test the trained NN with the test dataset by another script.","created_at":"2016-10-19T13:52:44Z","updated_at":"2016-10-20T07:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1d77c421a3e74e666752a83af772a19c925f952","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pfnet/chainer/pulls/1795/commits","review_comments_url":"https://api.github.com/repos/pfnet/chainer/pulls/1795/comments","review_comment_url":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/1795/comments","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/dd4d9ebdea0bdf2609a7fb45e3f33de8811bb868","head":{"label":"rezoo:seed_option","ref":"seed_option","sha":"dd4d9ebdea0bdf2609a7fb45e3f33de8811bb868","user":{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false},"repo":{"id":37520833,"name":"chainer","full_name":"rezoo/chainer","owner":{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rezoo/chainer","description":"A flexible framework of neural networks for deep learning","fork":true,"url":"https://api.github.com/repos/rezoo/chainer","forks_url":"https://api.github.com/repos/rezoo/chainer/forks","keys_url":"https://api.github.com/repos/rezoo/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rezoo/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rezoo/chainer/teams","hooks_url":"https://api.github.com/repos/rezoo/chainer/hooks","issue_events_url":"https://api.github.com/repos/rezoo/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/rezoo/chainer/events","assignees_url":"https://api.github.com/repos/rezoo/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/rezoo/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/rezoo/chainer/tags","blobs_url":"https://api.github.com/repos/rezoo/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rezoo/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rezoo/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/rezoo/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rezoo/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/rezoo/chainer/languages","stargazers_url":"https://api.github.com/repos/rezoo/chainer/stargazers","contributors_url":"https://api.github.com/repos/rezoo/chainer/contributors","subscribers_url":"https://api.github.com/repos/rezoo/chainer/subscribers","subscription_url":"https://api.github.com/repos/rezoo/chainer/subscription","commits_url":"https://api.github.com/repos/rezoo/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/rezoo/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/rezoo/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/rezoo/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/rezoo/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/rezoo/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rezoo/chainer/merges","archive_url":"https://api.github.com/repos/rezoo/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rezoo/chainer/downloads","issues_url":"https://api.github.com/repos/rezoo/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/rezoo/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/rezoo/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/rezoo/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rezoo/chainer/labels{/name}","releases_url":"https://api.github.com/repos/rezoo/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/rezoo/chainer/deployments","created_at":"2015-06-16T09:28:14Z","updated_at":"2016-01-28T11:59:28Z","pushed_at":"2016-10-19T13:46:04Z","git_url":"git://github.com/rezoo/chainer.git","ssh_url":"git@github.com:rezoo/chainer.git","clone_url":"https://github.com/rezoo/chainer.git","svn_url":"https://github.com/rezoo/chainer","homepage":"http://chainer.org","size":12758,"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":"pfnet:master","ref":"master","sha":"103f4c00c3badc118c835b5e818394a083d92aa7","user":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"repo":{"id":36914478,"name":"chainer","full_name":"pfnet/chainer","owner":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pfnet/chainer","description":"A flexible framework of neural networks for deep learning","fork":false,"url":"https://api.github.com/repos/pfnet/chainer","forks_url":"https://api.github.com/repos/pfnet/chainer/forks","keys_url":"https://api.github.com/repos/pfnet/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pfnet/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pfnet/chainer/teams","hooks_url":"https://api.github.com/repos/pfnet/chainer/hooks","issue_events_url":"https://api.github.com/repos/pfnet/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/pfnet/chainer/events","assignees_url":"https://api.github.com/repos/pfnet/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/pfnet/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/pfnet/chainer/tags","blobs_url":"https://api.github.com/repos/pfnet/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pfnet/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pfnet/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pfnet/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/pfnet/chainer/languages","stargazers_url":"https://api.github.com/repos/pfnet/chainer/stargazers","contributors_url":"https://api.github.com/repos/pfnet/chainer/contributors","subscribers_url":"https://api.github.com/repos/pfnet/chainer/subscribers","subscription_url":"https://api.github.com/repos/pfnet/chainer/subscription","commits_url":"https://api.github.com/repos/pfnet/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pfnet/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pfnet/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pfnet/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pfnet/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/pfnet/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pfnet/chainer/merges","archive_url":"https://api.github.com/repos/pfnet/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pfnet/chainer/downloads","issues_url":"https://api.github.com/repos/pfnet/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/pfnet/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/pfnet/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/pfnet/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pfnet/chainer/labels{/name}","releases_url":"https://api.github.com/repos/pfnet/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/pfnet/chainer/deployments","created_at":"2015-06-05T05:50:37Z","updated_at":"2016-10-20T06:41:46Z","pushed_at":"2016-10-20T07:08:02Z","git_url":"git://github.com/pfnet/chainer.git","ssh_url":"git@github.com:pfnet/chainer.git","clone_url":"https://github.com/pfnet/chainer.git","svn_url":"https://github.com/pfnet/chainer","homepage":"http://chainer.org","size":32864,"stargazers_count":1722,"watchers_count":1722,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":438,"mirror_url":null,"open_issues_count":252,"forks":438,"open_issues":252,"watchers":1722,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1795"},"html":{"href":"https://github.com/pfnet/chainer/pull/1795"},"issue":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1795"},"comments":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1795/comments"},"review_comments":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1795/comments"},"review_comment":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1795/commits"},"statuses":{"href":"https://api.github.com/repos/pfnet/chainer/statuses/dd4d9ebdea0bdf2609a7fb45e3f33de8811bb868"}}}}
{"actor":{"display_login":"muupan"}}