{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7385","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7385/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7385/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7385/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7385","id":176158026,"number":7385,"title":"[MRG] Fix ZeroDivisionWarning in Matern Kernel","user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/18","html_url":"https://github.com/scikit-learn/scikit-learn/milestones/0.18","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/18/labels","id":1314892,"number":18,"title":"0.18","description":"","creator":{"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},"open_issues":60,"closed_issues":79,"state":"open","created_at":"2015-09-20T02:17:00Z","updated_at":"2016-09-11T13:37:59Z","due_on":"2016-02-29T08:00:00Z","closed_at":null},"comments":2,"created_at":"2016-09-10T05:02:48Z","updated_at":"2016-09-11T16:37:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7385","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7385","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/7385.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/7385.patch"},"body":"#### Reference Issue\r\n\r\nFixes https://github.com/scikit-learn/scikit-learn/issues/5664\r\n\r\n#### What does this implement/fix? Explain your changes.\r\n\r\nThe previous code had got around the case where the distance equals zero by setting the gradient to zero after finding where it becomes infinite that raises a `ZeroDivisionWarning`. This is another solution using masked arrays in NumPy. I am unable to reproduce any other warning on master with the latest versions of NumPy and SciPy"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/246189644","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7385#issuecomment-246189644","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7385","id":246189644,"user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T16:37:28Z","updated_at":"2016-09-11T16:37:28Z","body":"Sorry about pushing directly. I was not able to reproduce the failure by doing `nosetests-3.4 sklearn/gaussian_process/tests/test_kernels.py ` or `nosetests-3.4 sklearn/gaussian_process/tests`, but I can reproduce while doing `nosetests-3.4 sklearn/`. Just running `nosetests-3.4 sklearn/` seesms to raise plenty of other warnings in `test_kernels.py` though. Trying to investigate."}}
{"actor":{"display_login":"MechCoder"}}