{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/41795226","id":41795226,"diff_hunk":"@@ -0,0 +1,51 @@\n+\"\"\"\n+==========================================\n+LOF example\n+==========================================\n+\n+An example using LOF for anomaly detection.","path":"examples/neighbors/plot_lof.py","position":6,"original_position":6,"commit_id":"ed4755c4fc25f5437e3fc5a1b801e6633874d9ce","original_commit_id":"ed4755c4fc25f5437e3fc5a1b801e6633874d9ce","user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"body":"You should be more explicit.\r\n\r\nLOF is jargon. I vote to rename the object LocalOutlierFactor to be explicit.\r\nAlso never use the acronym without writing the full words.\r\n\r\nyou could add a ref to the doc of this example too.","created_at":"2015-10-12T20:03:59Z","updated_at":"2015-10-12T20:03:59Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5279#discussion_r41795226","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/41795226"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5279#discussion_r41795226"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279","id":45166450,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/5279","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5279.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5279.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5279","number":5279,"state":"open","locked":false,"title":"WIP: LOF algorithm (Anomaly Detection)","user":{"login":"ngoix","id":5682433,"avatar_url":"https://avatars.githubusercontent.com/u/5682433?v=3","gravatar_id":"","url":"https://api.github.com/users/ngoix","html_url":"https://github.com/ngoix","followers_url":"https://api.github.com/users/ngoix/followers","following_url":"https://api.github.com/users/ngoix/following{/other_user}","gists_url":"https://api.github.com/users/ngoix/gists{/gist_id}","starred_url":"https://api.github.com/users/ngoix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngoix/subscriptions","organizations_url":"https://api.github.com/users/ngoix/orgs","repos_url":"https://api.github.com/users/ngoix/repos","events_url":"https://api.github.com/users/ngoix/events{/privacy}","received_events_url":"https://api.github.com/users/ngoix/received_events","type":"User","site_admin":false},"body":"Local Outlier Factor implementation.\r\n\r\nMotivated by previous discussions\r\nhttp://sourceforge.net/p/scikit-learn/mailman/message/32485020\r\nand\r\nhttps://github.com/scikit-learn/scikit-learn/pull/4163\r\n\r\nbenchmarks of LOF on:\r\nhttps://github.com/ngoix/scikit-learn/tree/bench_lof\r\n","created_at":"2015-09-16T12:44:13Z","updated_at":"2015-10-12T20:03:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08161e391815919fb397976ec413b9669d572d40","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5279/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/ed4755c4fc25f5437e3fc5a1b801e6633874d9ce","head":{"label":"ngoix:lof","ref":"lof","sha":"ed4755c4fc25f5437e3fc5a1b801e6633874d9ce","user":{"login":"ngoix","id":5682433,"avatar_url":"https://avatars.githubusercontent.com/u/5682433?v=3","gravatar_id":"","url":"https://api.github.com/users/ngoix","html_url":"https://github.com/ngoix","followers_url":"https://api.github.com/users/ngoix/followers","following_url":"https://api.github.com/users/ngoix/following{/other_user}","gists_url":"https://api.github.com/users/ngoix/gists{/gist_id}","starred_url":"https://api.github.com/users/ngoix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngoix/subscriptions","organizations_url":"https://api.github.com/users/ngoix/orgs","repos_url":"https://api.github.com/users/ngoix/repos","events_url":"https://api.github.com/users/ngoix/events{/privacy}","received_events_url":"https://api.github.com/users/ngoix/received_events","type":"User","site_admin":false},"repo":{"id":20621109,"name":"scikit-learn","full_name":"ngoix/scikit-learn","owner":{"login":"ngoix","id":5682433,"avatar_url":"https://avatars.githubusercontent.com/u/5682433?v=3","gravatar_id":"","url":"https://api.github.com/users/ngoix","html_url":"https://github.com/ngoix","followers_url":"https://api.github.com/users/ngoix/followers","following_url":"https://api.github.com/users/ngoix/following{/other_user}","gists_url":"https://api.github.com/users/ngoix/gists{/gist_id}","starred_url":"https://api.github.com/users/ngoix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngoix/subscriptions","organizations_url":"https://api.github.com/users/ngoix/orgs","repos_url":"https://api.github.com/users/ngoix/repos","events_url":"https://api.github.com/users/ngoix/events{/privacy}","received_events_url":"https://api.github.com/users/ngoix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ngoix/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/ngoix/scikit-learn","forks_url":"https://api.github.com/repos/ngoix/scikit-learn/forks","keys_url":"https://api.github.com/repos/ngoix/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngoix/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngoix/scikit-learn/teams","hooks_url":"https://api.github.com/repos/ngoix/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/ngoix/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/ngoix/scikit-learn/events","assignees_url":"https://api.github.com/repos/ngoix/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/ngoix/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/ngoix/scikit-learn/tags","blobs_url":"https://api.github.com/repos/ngoix/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngoix/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngoix/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngoix/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngoix/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/ngoix/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/ngoix/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/ngoix/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/ngoix/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/ngoix/scikit-learn/subscription","commits_url":"https://api.github.com/repos/ngoix/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngoix/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngoix/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngoix/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngoix/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/ngoix/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngoix/scikit-learn/merges","archive_url":"https://api.github.com/repos/ngoix/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngoix/scikit-learn/downloads","issues_url":"https://api.github.com/repos/ngoix/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/ngoix/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/ngoix/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/ngoix/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngoix/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/ngoix/scikit-learn/releases{/id}","created_at":"2014-06-08T16:42:05Z","updated_at":"2015-08-24T12:34:34Z","pushed_at":"2015-10-12T16:23:06Z","git_url":"git://github.com/ngoix/scikit-learn.git","ssh_url":"git@github.com:ngoix/scikit-learn.git","clone_url":"https://github.com/ngoix/scikit-learn.git","svn_url":"https://github.com/ngoix/scikit-learn","homepage":"http://scikit-learn.org","size":67360,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":0,"forks":5,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"ebd5dbc68a6645e0cb024742b20fc2c772357028","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","created_at":"2010-08-17T09:43:38Z","updated_at":"2015-10-12T18:06:52Z","pushed_at":"2015-10-12T19:58:50Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":136809,"stargazers_count":7823,"watchers_count":7823,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4641,"mirror_url":null,"open_issues_count":770,"forks":4641,"open_issues":770,"watchers":7823,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5279"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5279"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5279/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5279/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/ed4755c4fc25f5437e3fc5a1b801e6633874d9ce"}}}}