{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/196","repository_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn","labels_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/196/comments","events_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/196/events","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/pull/196","id":192582844,"number":196,"title":"[MRG] Resolved #195 - removing sklearn.cross_validation DeprecationWarning issue","user":{"login":"dvro","id":511783,"avatar_url":"https://avatars.githubusercontent.com/u/511783?v=3","gravatar_id":"","url":"https://api.github.com/users/dvro","html_url":"https://github.com/dvro","followers_url":"https://api.github.com/users/dvro/followers","following_url":"https://api.github.com/users/dvro/following{/other_user}","gists_url":"https://api.github.com/users/dvro/gists{/gist_id}","starred_url":"https://api.github.com/users/dvro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvro/subscriptions","organizations_url":"https://api.github.com/users/dvro/orgs","repos_url":"https://api.github.com/users/dvro/repos","events_url":"https://api.github.com/users/dvro/events{/privacy}","received_events_url":"https://api.github.com/users/dvro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-30T14:42:31Z","updated_at":"2016-11-30T15:43:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/pulls/196","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/pull/196","diff_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/pull/196.diff","patch_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/pull/196.patch"},"body":"Adapted StratifiedKFold import doing the following:\r\n\r\n```\r\nimport sklearn\r\n\r\nif hasattr(sklearn, 'model_selection'):\r\n    from sklearn.model_selection import StratifiedKFold\r\nelse:\r\n    from sklearn.cross_validation import StratifiedKFold\r\n```\r\n\r\nnow, the following command:\r\n`from imblearn.ensemble import EasyEnsemble`\r\n\r\ndo not raise the following deprecation warning:\r\n\r\n```\r\nDeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.\r\n  \"This module will be removed in 0.20.\", DeprecationWarning)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/comments/263906800","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/pull/196#issuecomment-263906800","issue_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/196","id":263906800,"user":{"login":"dvro","id":511783,"avatar_url":"https://avatars.githubusercontent.com/u/511783?v=3","gravatar_id":"","url":"https://api.github.com/users/dvro","html_url":"https://github.com/dvro","followers_url":"https://api.github.com/users/dvro/followers","following_url":"https://api.github.com/users/dvro/following{/other_user}","gists_url":"https://api.github.com/users/dvro/gists{/gist_id}","starred_url":"https://api.github.com/users/dvro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvro/subscriptions","organizations_url":"https://api.github.com/users/dvro/orgs","repos_url":"https://api.github.com/users/dvro/repos","events_url":"https://api.github.com/users/dvro/events{/privacy}","received_events_url":"https://api.github.com/users/dvro/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T15:43:49Z","updated_at":"2016-11-30T15:43:49Z","body":"@chkoar @glemaitre this is just a quickfix, not a definitive solution (IMO, we should support sklearn 0.18.X forward, only)."}}
{"actor":{"display_login":"dvro"}}