{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11980","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11980/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11980/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11980/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/11980","id":356401996,"node_id":"MDU6SXNzdWUzNTY0MDE5OTY=","number":11980,"title":"OPTICS: self.core_distances_ inconsistent with documentation&R implementation","user":{"login":"qinhanmin2014","id":12003569,"node_id":"MDQ6VXNlcjEyMDAzNTY5","avatar_url":"https://avatars2.githubusercontent.com/u/12003569?v=4","gravatar_id":"","url":"https://api.github.com/users/qinhanmin2014","html_url":"https://github.com/qinhanmin2014","followers_url":"https://api.github.com/users/qinhanmin2014/followers","following_url":"https://api.github.com/users/qinhanmin2014/following{/other_user}","gists_url":"https://api.github.com/users/qinhanmin2014/gists{/gist_id}","starred_url":"https://api.github.com/users/qinhanmin2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qinhanmin2014/subscriptions","organizations_url":"https://api.github.com/users/qinhanmin2014/orgs","repos_url":"https://api.github.com/users/qinhanmin2014/repos","events_url":"https://api.github.com/users/qinhanmin2014/events{/privacy}","received_events_url":"https://api.github.com/users/qinhanmin2014/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-03T08:17:45Z","updated_at":"2018-09-03T09:31:18Z","closed_at":null,"author_association":"MEMBER","body":"In the doc, we state that ``Points which will never be core have a distance of inf.``, but it's not the case.\r\nResult from scikit-learn:\r\n```\r\nimport numpy as np\r\nfrom sklearn.cluster import OPTICS\r\nX = np.array([-5, -2, -4.8, -1.8, -5.2, -2.2, 100, 200, 4, 2, 3.8, 1.8, 4.2, 2.2])\r\nX = X.reshape(-1, 2)\r\nclust = OPTICS(min_samples=3, max_bound=1)\r\nclust.fit(X)\r\nclust.core_distances_\r\n```\r\n```\r\narray([  0.28284271,   0.56568542,   0.56568542, 220.04544985, \r\n         0.28284271,   0.56568542,   0.56568542])\r\n```\r\nResult from R:\r\n```\r\nx <- matrix(c(-5, -2, -4.8, -1.8, -5.2, -2.2, 100, 200,\r\n              4, 2, 3.8, 1.8, 4.2, 2.2), ncol=2, byrow=TRUE)\r\nresult <- optics(x, eps=1, minPts=3)\r\nresult$coredist\r\n```\r\n```\r\n[1] 0.2828427 0.5656854 0.5656854       Inf 0.2828427 0.5656854 0.5656854\r\n```"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/418057745","html_url":"https://github.com/scikit-learn/scikit-learn/issues/11980#issuecomment-418057745","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11980","id":418057745,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODA1Nzc0NQ==","user":{"login":"jnothman","id":78827,"node_id":"MDQ6VXNlcjc4ODI3","avatar_url":"https://avatars2.githubusercontent.com/u/78827?v=4","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},"created_at":"2018-09-03T09:31:18Z","updated_at":"2018-09-03T09:31:18Z","author_association":"MEMBER","body":"I agree\n"}}
{"actor":{"display_login":"jnothman"}}