{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7593","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7593/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7593/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7593/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7593","id":181443054,"number":7593,"title":"[MRG + 1] FIX Validate and convert X, y and groups to ndarray before splitting","user":{"login":"raghavrv","id":9487348,"avatar_url":"https://avatars.githubusercontent.com/u/9487348?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavrv","html_url":"https://github.com/raghavrv","followers_url":"https://api.github.com/users/raghavrv/followers","following_url":"https://api.github.com/users/raghavrv/following{/other_user}","gists_url":"https://api.github.com/users/raghavrv/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavrv/subscriptions","organizations_url":"https://api.github.com/users/raghavrv/orgs","repos_url":"https://api.github.com/users/raghavrv/repos","events_url":"https://api.github.com/users/raghavrv/events{/privacy}","received_events_url":"https://api.github.com/users/raghavrv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Needs%20Review","name":"Needs Review","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/22","html_url":"https://github.com/scikit-learn/scikit-learn/milestones/0.18.1","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/22/labels","id":2046567,"number":22,"title":"0.18.1","description":"Urgent fixes to bugs and web site issues.","creator":{"login":"jnothman","id":78827,"avatar_url":"https://avatars.githubusercontent.com/u/78827?v=3","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":22,"state":"open","created_at":"2016-10-04T11:55:58Z","updated_at":"2016-10-20T05:44:11Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-10-06T15:12:07Z","updated_at":"2016-10-20T12:32:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7593","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7593","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/7593.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/7593.patch"},"body":"Fixes #7582 and #7126\r\n\r\nAt sklearn 0.18.0\r\n\r\n```python\r\n>>> from sklearn.model_selection import train_test_split\r\n>>> X, y = [[1,], [2,], [3,], [4,], [5,], [6,]], ['1', '2', '1', '2', '1', '2']\r\n>>> _ = train_test_split(X, y, stratify=y)\r\nIndexError: index 0 is out of bounds for axis 1 with size 0\r\n```\r\n\r\nThat is fixed after this PR.\r\n\r\nThis PR also cleans up some docstrings and adds test for `LeavePGroupsOut` and `LeaveOneGroupOut`...\r\n\r\n@jnothman @amueller @lesteve Reviews please :)"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/255092644","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7593#issuecomment-255092644","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7593","id":255092644,"user":{"login":"raghavrv","id":9487348,"avatar_url":"https://avatars.githubusercontent.com/u/9487348?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavrv","html_url":"https://github.com/raghavrv","followers_url":"https://api.github.com/users/raghavrv/followers","following_url":"https://api.github.com/users/raghavrv/following{/other_user}","gists_url":"https://api.github.com/users/raghavrv/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavrv/subscriptions","organizations_url":"https://api.github.com/users/raghavrv/orgs","repos_url":"https://api.github.com/users/raghavrv/repos","events_url":"https://api.github.com/users/raghavrv/events{/privacy}","received_events_url":"https://api.github.com/users/raghavrv/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T12:32:19Z","updated_at":"2016-10-20T12:32:19Z","body":"Have addressed your comments. A 2nd look please? @jnothman @vene @TomDLT ?"}}
{"actor":{"display_login":"raghavrv"}}