{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/155","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/155/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/155/comments","events_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/155/events","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/issues/155","id":178325929,"number":155,"title":"RepeatedEditedNearestNeighbours Not Working","user":{"login":"mldataanalysis","id":21120474,"avatar_url":"https://avatars.githubusercontent.com/u/21120474?v=3","gravatar_id":"","url":"https://api.github.com/users/mldataanalysis","html_url":"https://github.com/mldataanalysis","followers_url":"https://api.github.com/users/mldataanalysis/followers","following_url":"https://api.github.com/users/mldataanalysis/following{/other_user}","gists_url":"https://api.github.com/users/mldataanalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/mldataanalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mldataanalysis/subscriptions","organizations_url":"https://api.github.com/users/mldataanalysis/orgs","repos_url":"https://api.github.com/users/mldataanalysis/repos","events_url":"https://api.github.com/users/mldataanalysis/events{/privacy}","received_events_url":"https://api.github.com/users/mldataanalysis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-21T11:59:09Z","updated_at":"2016-09-21T13:54:52Z","closed_at":null,"body":"The following code runs with no problems:\r\n\r\n    us =  CondensedNearestNeighbour()\r\n    X_train_res, y_train_res = us.fit_sample(X_train, y_train)\r\n\r\nHowever I get the error shown below when I run the same data with RENN. Is this a flaw with my code \r\nor imblearn? \r\n\r\n    us =  RepeatedEditedNearestNeighbours(size_ngh=5)\r\n    X_train_res, y_train_res = us.fit_sample(X_train, y_train)\r\n\r\nTraceback (most recent call last):\r\n  File \"<pyshell#23>\", line 1, in <module>\r\n    us.fit_sample(X_train, y_train)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\imblearn\\base.py\", line 178, in fit_sample\r\n    return self.fit(X, y).sample(X, y)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\imblearn\\base.py\", line 155, in sample\r\n    return self._sample(X, y)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\imblearn\\under_sampling\\edited_nearest_neighbours.py\", line 351, in _sample\r\n    in zip(stats_enn.itervalues(),\r\nAttributeError: 'Counter' object has no attribute 'itervalues'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/comments/248619473","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/issues/155#issuecomment-248619473","issue_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/155","id":248619473,"user":{"login":"mldataanalysis","id":21120474,"avatar_url":"https://avatars.githubusercontent.com/u/21120474?v=3","gravatar_id":"","url":"https://api.github.com/users/mldataanalysis","html_url":"https://github.com/mldataanalysis","followers_url":"https://api.github.com/users/mldataanalysis/followers","following_url":"https://api.github.com/users/mldataanalysis/following{/other_user}","gists_url":"https://api.github.com/users/mldataanalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/mldataanalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mldataanalysis/subscriptions","organizations_url":"https://api.github.com/users/mldataanalysis/orgs","repos_url":"https://api.github.com/users/mldataanalysis/repos","events_url":"https://api.github.com/users/mldataanalysis/events{/privacy}","received_events_url":"https://api.github.com/users/mldataanalysis/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T13:54:52Z","updated_at":"2016-09-21T13:54:52Z","body":"Brilliant. It works fine now.\r\n\r\nBtw this didn't work.\r\n\r\n    conda upgrade imbalanced-learn\r\n\r\nBut this did.\r\n\r\n    conda upgrade -c glemaitre imbalanced-learn"}}
{"actor":{"display_login":"mldataanalysis"}}