{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/492","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/492/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/492/comments","events_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/492/events","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/issues/492","id":375236435,"node_id":"MDU6SXNzdWUzNzUyMzY0MzU=","number":492,"title":"Warning message for upcoming version of scikit-learn","user":{"login":"ivan-marroquin","id":28459534,"node_id":"MDQ6VXNlcjI4NDU5NTM0","avatar_url":"https://avatars1.githubusercontent.com/u/28459534?v=4","gravatar_id":"","url":"https://api.github.com/users/ivan-marroquin","html_url":"https://github.com/ivan-marroquin","followers_url":"https://api.github.com/users/ivan-marroquin/followers","following_url":"https://api.github.com/users/ivan-marroquin/following{/other_user}","gists_url":"https://api.github.com/users/ivan-marroquin/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-marroquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-marroquin/subscriptions","organizations_url":"https://api.github.com/users/ivan-marroquin/orgs","repos_url":"https://api.github.com/users/ivan-marroquin/repos","events_url":"https://api.github.com/users/ivan-marroquin/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-marroquin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T22:05:01Z","updated_at":"2018-10-31T12:56:29Z","closed_at":"2018-10-31T12:56:28Z","author_association":"NONE","body":"<!--\r\nIf your issue is a usage question, submit it here instead:\r\n- The imbalanced learn gitter: https://gitter.im/scikit-learn-contrib/imbalanced-learn\r\n-->\r\n\r\n<!-- Instructions For Filing a Bug: https://github.com/scikit-learn-contrib/imbalanced-learn/blob/master/CONTRIBUTING.md#filing-bugs -->\r\n\r\n#### Description\r\n<!-- Example: Joblib Error thrown when calling fit on LatentDirichletAllocation with evaluate_every > 0-->\r\nI get the following warning message:\r\n\r\n```pytb\r\nC:\\Temp\\Python\\Python36\\lib\\site-packages\\sklearn\\svm\\base.py:196: FutureWarning: The default value of gamma will change from 'auto' to 'scale' in version 0.22 to account better for unscaled features.\r\n Set gamma explicitly to 'auto' or 'scale' to avoid this warning.\r\n  \"avoid this warning.\", FutureWarning)\r\n\r\n```\r\n\r\n#### Steps/Code to Reproduce\r\n<!--\r\nExample:\r\n```\r\nfrom sklearn.feature_extraction.text import CountVectorizer\r\nfrom sklearn.decomposition import LatentDirichletAllocation\r\n\r\ndocs = [\"Help I have a bug\" for i in range(1000)]\r\n\r\nvectorizer = CountVectorizer(input=docs, analyzer='word')\r\nlda_features = vectorizer.fit_transform(docs)\r\n\r\nlda_model = LatentDirichletAllocation(\r\n    n_topics=10,\r\n    learning_method='online',\r\n    evaluate_every=10,\r\n    n_jobs=4,\r\n)\r\nmodel = lda_model.fit(lda_features)\r\n```\r\nIf the code is too long, feel free to put it in a public gist and link\r\nit in the issue: https://gist.github.com\r\n-->\r\n```python\r\nfrom imblearn.over_sampling import SMOTE\r\nfrom imblearn.under_sampling import EditedNearestNeighbours\r\nfrom imblearn.combine import SMOTEENN\r\n\r\nenn_sampler= SMOTEENN(ratio= 'auto', random_state= 1969, smote= SMOTE(kind= 'svm', m_neighbors= 5, k_neighbors= 2), enn= EditedNearestNeighbours(ratio= 'auto', n_neighbors= 1))\r\n\r\n# load data into \"x_train_1\" and respective labels into \"y_train_1\"\r\nx_train_1b, y_train_1b= enn_sampler.fit_sample(x_train_1, y_train_1.flat)\r\n```\r\n\r\n#### Expected Results\r\n<!-- Example: No error is thrown. Please paste or describe the expected results.-->\r\n\r\n#### Actual Results\r\n<!-- Please paste or specifically describe the actual output or traceback. -->\r\n\r\n#### Versions\r\n<!--\r\nPlease run the following snippet and paste the output below.\r\nimport platform; print(platform.platform())\r\nimport sys; print(\"Python\", sys.version)\r\nimport numpy; print(\"NumPy\", numpy.__version__)\r\nimport scipy; print(\"SciPy\", scipy.__version__)\r\nimport sklearn; print(\"Scikit-Learn\", sklearn.__version__)\r\nimport imblearn; print(\"Imbalanced-Learn\", imblearn.__version__)\r\n-->\r\nPython 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]\r\nNumpy 1.15.2\r\nSciPy 1.1.0\r\nScikit-Learn 0.20.0\r\nImbalanced-Learn 0.3.3\r\n\r\n<!-- Thanks for contributing! -->\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/comments/434676154","html_url":"https://github.com/scikit-learn-contrib/imbalanced-learn/issues/492#issuecomment-434676154","issue_url":"https://api.github.com/repos/scikit-learn-contrib/imbalanced-learn/issues/492","id":434676154,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDY3NjE1NA==","user":{"login":"glemaitre","id":7454015,"node_id":"MDQ6VXNlcjc0NTQwMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/7454015?v=4","gravatar_id":"","url":"https://api.github.com/users/glemaitre","html_url":"https://github.com/glemaitre","followers_url":"https://api.github.com/users/glemaitre/followers","following_url":"https://api.github.com/users/glemaitre/following{/other_user}","gists_url":"https://api.github.com/users/glemaitre/gists{/gist_id}","starred_url":"https://api.github.com/users/glemaitre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glemaitre/subscriptions","organizations_url":"https://api.github.com/users/glemaitre/orgs","repos_url":"https://api.github.com/users/glemaitre/repos","events_url":"https://api.github.com/users/glemaitre/events{/privacy}","received_events_url":"https://api.github.com/users/glemaitre/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T12:56:28Z","updated_at":"2018-10-31T12:56:28Z","author_association":"MEMBER","body":"Already corrected in imbalanced-learn 0.4"}}
{"actor":{"display_login":"glemaitre"}}