{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/42597936","id":42597936,"diff_hunk":"@@ -1820,8 +1821,13 @@ def train_test_split(*arrays, **options):\n \n     Returns\n     -------\n-    splitting : list of arrays, length=2 * len(arrays)\n-        List containing train-test split of input array.\n+    splitting : length = 2 * len(arrays), \n+        If input is a list, the output will be a list.\n+        If numpy array, the output will be a numpy array.\n+        If scipy.sparse matrix, the output will be a \n+        scipy.sparse matrix. If input is a pandas dataframe, ","path":"sklearn/cross_validation.py","position":26,"original_position":26,"commit_id":"ea17bd5debf454f311e442a7a8de9a76f2544182","original_commit_id":"ea17bd5debf454f311e442a7a8de9a76f2544182","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"body":"Please double check. Also, you can add a versionadded 0.16 thing that says this was changed from always casting to a numpy array. Preferably also add an entry to the whatsnew of 0.16 in the API changes section to say that this changed from always casting to a numpy array to preserving the input type.","created_at":"2015-10-21T08:54:15Z","updated_at":"2015-10-21T08:54:15Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5476#discussion_r42597936","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/42597936"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5476#discussion_r42597936"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476","id":48165881,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/5476","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5476.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5476.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5476","number":5476,"state":"open","locked":false,"title":"[MRG] Update cross_validation.py documentation ","user":{"login":"adijo","id":3933447,"avatar_url":"https://avatars.githubusercontent.com/u/3933447?v=3","gravatar_id":"","url":"https://api.github.com/users/adijo","html_url":"https://github.com/adijo","followers_url":"https://api.github.com/users/adijo/followers","following_url":"https://api.github.com/users/adijo/following{/other_user}","gists_url":"https://api.github.com/users/adijo/gists{/gist_id}","starred_url":"https://api.github.com/users/adijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adijo/subscriptions","organizations_url":"https://api.github.com/users/adijo/orgs","repos_url":"https://api.github.com/users/adijo/repos","events_url":"https://api.github.com/users/adijo/events{/privacy}","received_events_url":"https://api.github.com/users/adijo/received_events","type":"User","site_admin":false},"body":"Specified that output types for `train_test_split` depend on input types.","created_at":"2015-10-20T07:38:34Z","updated_at":"2015-10-21T08:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9eac20d233d89f9d074a61279b65415cb95c947","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5476/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/ea17bd5debf454f311e442a7a8de9a76f2544182","head":{"label":"adijo:master","ref":"master","sha":"ea17bd5debf454f311e442a7a8de9a76f2544182","user":{"login":"adijo","id":3933447,"avatar_url":"https://avatars.githubusercontent.com/u/3933447?v=3","gravatar_id":"","url":"https://api.github.com/users/adijo","html_url":"https://github.com/adijo","followers_url":"https://api.github.com/users/adijo/followers","following_url":"https://api.github.com/users/adijo/following{/other_user}","gists_url":"https://api.github.com/users/adijo/gists{/gist_id}","starred_url":"https://api.github.com/users/adijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adijo/subscriptions","organizations_url":"https://api.github.com/users/adijo/orgs","repos_url":"https://api.github.com/users/adijo/repos","events_url":"https://api.github.com/users/adijo/events{/privacy}","received_events_url":"https://api.github.com/users/adijo/received_events","type":"User","site_admin":false},"repo":{"id":44588555,"name":"scikit-learn","full_name":"adijo/scikit-learn","owner":{"login":"adijo","id":3933447,"avatar_url":"https://avatars.githubusercontent.com/u/3933447?v=3","gravatar_id":"","url":"https://api.github.com/users/adijo","html_url":"https://github.com/adijo","followers_url":"https://api.github.com/users/adijo/followers","following_url":"https://api.github.com/users/adijo/following{/other_user}","gists_url":"https://api.github.com/users/adijo/gists{/gist_id}","starred_url":"https://api.github.com/users/adijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adijo/subscriptions","organizations_url":"https://api.github.com/users/adijo/orgs","repos_url":"https://api.github.com/users/adijo/repos","events_url":"https://api.github.com/users/adijo/events{/privacy}","received_events_url":"https://api.github.com/users/adijo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adijo/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/adijo/scikit-learn","forks_url":"https://api.github.com/repos/adijo/scikit-learn/forks","keys_url":"https://api.github.com/repos/adijo/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adijo/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adijo/scikit-learn/teams","hooks_url":"https://api.github.com/repos/adijo/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/adijo/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/adijo/scikit-learn/events","assignees_url":"https://api.github.com/repos/adijo/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/adijo/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/adijo/scikit-learn/tags","blobs_url":"https://api.github.com/repos/adijo/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adijo/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adijo/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/adijo/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adijo/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/adijo/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/adijo/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/adijo/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/adijo/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/adijo/scikit-learn/subscription","commits_url":"https://api.github.com/repos/adijo/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/adijo/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/adijo/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/adijo/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/adijo/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/adijo/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adijo/scikit-learn/merges","archive_url":"https://api.github.com/repos/adijo/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adijo/scikit-learn/downloads","issues_url":"https://api.github.com/repos/adijo/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/adijo/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/adijo/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/adijo/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adijo/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/adijo/scikit-learn/releases{/id}","created_at":"2015-10-20T07:08:44Z","updated_at":"2015-10-20T07:08:58Z","pushed_at":"2015-10-20T17:03:21Z","git_url":"git://github.com/adijo/scikit-learn.git","ssh_url":"git@github.com:adijo/scikit-learn.git","clone_url":"https://github.com/adijo/scikit-learn.git","svn_url":"https://github.com/adijo/scikit-learn","homepage":"http://scikit-learn.org","size":68476,"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":"scikit-learn:master","ref":"master","sha":"056b02977b796450e7a6bc1ef5ca02f7f7b156e9","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","created_at":"2010-08-17T09:43:38Z","updated_at":"2015-10-21T08:51:40Z","pushed_at":"2015-10-21T08:48:54Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":140651,"stargazers_count":7925,"watchers_count":7925,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4719,"mirror_url":null,"open_issues_count":776,"forks":4719,"open_issues":776,"watchers":7925,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5476"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5476"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5476/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5476/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/ea17bd5debf454f311e442a7a8de9a76f2544182"}}}}