{"action":"created","comment":{"url":"https://api.github.com/repos/cosname/cosx.org/pulls/comments/106800970","pull_request_review_id":27742770,"id":106800970,"diff_hunk":"@@ -11,11 +11,11 @@ categories:\n slug: the-story-about-algorithm\n description: \n \n-\"K-means是最常用的聚类算法之一：容易理解，实现不难，虽然会有local optimum，但通常结果也不差。但k-means也不是万金油，比如在一些比较复杂的问题和非线性数据分布上，k-means也会失败。普林斯顿博士David Robinson写了一篇不错的分析[文章](http://varianceexplained.org/r/kmeans-free-lunch/)，介绍了几种k-means会失效的情形。\n+\"K-means是最常用的聚类算法之一：容易理解，实现不难，虽然会有local optimum，但通常结果也不差。但k-means也不是万金油，比如在一些比较复杂的问题和非线性数据分布上，k-means也会失败。普林斯顿博士David Robinson写了一篇不错的分析[文章](http://varianceexplained.org/r/kmeans-free-lunch/)，介绍了几种k-means会失效的情形。\"","path":"content/post/2015-01-19-the-story-about-algorithm.md","position":null,"original_position":5,"commit_id":"1488b12c1396195810bbac04513ed7e9c665dd50","original_commit_id":"1488b12c1396195810bbac04513ed7e9c665dd50","user":{"login":"RockYanShi","id":22650257,"avatar_url":"https://avatars3.githubusercontent.com/u/22650257?v=3","gravatar_id":"","url":"https://api.github.com/users/RockYanShi","html_url":"https://github.com/RockYanShi","followers_url":"https://api.github.com/users/RockYanShi/followers","following_url":"https://api.github.com/users/RockYanShi/following{/other_user}","gists_url":"https://api.github.com/users/RockYanShi/gists{/gist_id}","starred_url":"https://api.github.com/users/RockYanShi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockYanShi/subscriptions","organizations_url":"https://api.github.com/users/RockYanShi/orgs","repos_url":"https://api.github.com/users/RockYanShi/repos","events_url":"https://api.github.com/users/RockYanShi/events{/privacy}","received_events_url":"https://api.github.com/users/RockYanShi/received_events","type":"User","site_admin":false},"body":"好的 明白啦","created_at":"2017-03-19T08:36:08Z","updated_at":"2017-03-19T08:36:08Z","html_url":"https://github.com/cosname/cosx.org/pull/24#discussion_r106800970","pull_request_url":"https://api.github.com/repos/cosname/cosx.org/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/comments/106800970"},"html":{"href":"https://github.com/cosname/cosx.org/pull/24#discussion_r106800970"},"pull_request":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/cosname/cosx.org/pulls/24","id":111398987,"html_url":"https://github.com/cosname/cosx.org/pull/24","diff_url":"https://github.com/cosname/cosx.org/pull/24.diff","patch_url":"https://github.com/cosname/cosx.org/pull/24.patch","issue_url":"https://api.github.com/repos/cosname/cosx.org/issues/24","number":24,"state":"open","locked":false,"title":"Update 2015-01-19-the-story-about-algorithm.md","user":{"login":"RockYanShi","id":22650257,"avatar_url":"https://avatars3.githubusercontent.com/u/22650257?v=3","gravatar_id":"","url":"https://api.github.com/users/RockYanShi","html_url":"https://github.com/RockYanShi","followers_url":"https://api.github.com/users/RockYanShi/followers","following_url":"https://api.github.com/users/RockYanShi/following{/other_user}","gists_url":"https://api.github.com/users/RockYanShi/gists{/gist_id}","starred_url":"https://api.github.com/users/RockYanShi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockYanShi/subscriptions","organizations_url":"https://api.github.com/users/RockYanShi/orgs","repos_url":"https://api.github.com/users/RockYanShi/repos","events_url":"https://api.github.com/users/RockYanShi/events{/privacy}","received_events_url":"https://api.github.com/users/RockYanShi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-18T06:10:32Z","updated_at":"2017-03-19T08:36:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2d0fd8fb08f0aeacfee8f0e1dd16ceccf69b793","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cosname/cosx.org/pulls/24/commits","review_comments_url":"https://api.github.com/repos/cosname/cosx.org/pulls/24/comments","review_comment_url":"https://api.github.com/repos/cosname/cosx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cosname/cosx.org/issues/24/comments","statuses_url":"https://api.github.com/repos/cosname/cosx.org/statuses/1488b12c1396195810bbac04513ed7e9c665dd50","head":{"label":"RockYanShi:patch-7","ref":"patch-7","sha":"1488b12c1396195810bbac04513ed7e9c665dd50","user":{"login":"RockYanShi","id":22650257,"avatar_url":"https://avatars3.githubusercontent.com/u/22650257?v=3","gravatar_id":"","url":"https://api.github.com/users/RockYanShi","html_url":"https://github.com/RockYanShi","followers_url":"https://api.github.com/users/RockYanShi/followers","following_url":"https://api.github.com/users/RockYanShi/following{/other_user}","gists_url":"https://api.github.com/users/RockYanShi/gists{/gist_id}","starred_url":"https://api.github.com/users/RockYanShi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockYanShi/subscriptions","organizations_url":"https://api.github.com/users/RockYanShi/orgs","repos_url":"https://api.github.com/users/RockYanShi/repos","events_url":"https://api.github.com/users/RockYanShi/events{/privacy}","received_events_url":"https://api.github.com/users/RockYanShi/received_events","type":"User","site_admin":false},"repo":{"id":85326717,"name":"cosx.org","full_name":"RockYanShi/cosx.org","owner":{"login":"RockYanShi","id":22650257,"avatar_url":"https://avatars3.githubusercontent.com/u/22650257?v=3","gravatar_id":"","url":"https://api.github.com/users/RockYanShi","html_url":"https://github.com/RockYanShi","followers_url":"https://api.github.com/users/RockYanShi/followers","following_url":"https://api.github.com/users/RockYanShi/following{/other_user}","gists_url":"https://api.github.com/users/RockYanShi/gists{/gist_id}","starred_url":"https://api.github.com/users/RockYanShi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockYanShi/subscriptions","organizations_url":"https://api.github.com/users/RockYanShi/orgs","repos_url":"https://api.github.com/users/RockYanShi/repos","events_url":"https://api.github.com/users/RockYanShi/events{/privacy}","received_events_url":"https://api.github.com/users/RockYanShi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RockYanShi/cosx.org","description":"统计之都主站（测试！）","fork":true,"url":"https://api.github.com/repos/RockYanShi/cosx.org","forks_url":"https://api.github.com/repos/RockYanShi/cosx.org/forks","keys_url":"https://api.github.com/repos/RockYanShi/cosx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RockYanShi/cosx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RockYanShi/cosx.org/teams","hooks_url":"https://api.github.com/repos/RockYanShi/cosx.org/hooks","issue_events_url":"https://api.github.com/repos/RockYanShi/cosx.org/issues/events{/number}","events_url":"https://api.github.com/repos/RockYanShi/cosx.org/events","assignees_url":"https://api.github.com/repos/RockYanShi/cosx.org/assignees{/user}","branches_url":"https://api.github.com/repos/RockYanShi/cosx.org/branches{/branch}","tags_url":"https://api.github.com/repos/RockYanShi/cosx.org/tags","blobs_url":"https://api.github.com/repos/RockYanShi/cosx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RockYanShi/cosx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RockYanShi/cosx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/RockYanShi/cosx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RockYanShi/cosx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/RockYanShi/cosx.org/languages","stargazers_url":"https://api.github.com/repos/RockYanShi/cosx.org/stargazers","contributors_url":"https://api.github.com/repos/RockYanShi/cosx.org/contributors","subscribers_url":"https://api.github.com/repos/RockYanShi/cosx.org/subscribers","subscription_url":"https://api.github.com/repos/RockYanShi/cosx.org/subscription","commits_url":"https://api.github.com/repos/RockYanShi/cosx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/RockYanShi/cosx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/RockYanShi/cosx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/RockYanShi/cosx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/RockYanShi/cosx.org/contents/{+path}","compare_url":"https://api.github.com/repos/RockYanShi/cosx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RockYanShi/cosx.org/merges","archive_url":"https://api.github.com/repos/RockYanShi/cosx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RockYanShi/cosx.org/downloads","issues_url":"https://api.github.com/repos/RockYanShi/cosx.org/issues{/number}","pulls_url":"https://api.github.com/repos/RockYanShi/cosx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/RockYanShi/cosx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/RockYanShi/cosx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RockYanShi/cosx.org/labels{/name}","releases_url":"https://api.github.com/repos/RockYanShi/cosx.org/releases{/id}","deployments_url":"https://api.github.com/repos/RockYanShi/cosx.org/deployments","created_at":"2017-03-17T15:26:35Z","updated_at":"2017-03-17T15:26:39Z","pushed_at":"2017-03-19T08:32:03Z","git_url":"git://github.com/RockYanShi/cosx.org.git","ssh_url":"git@github.com:RockYanShi/cosx.org.git","clone_url":"https://github.com/RockYanShi/cosx.org.git","svn_url":"https://github.com/RockYanShi/cosx.org","homepage":null,"size":3049,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cosname:master","ref":"master","sha":"3b6bd20d8b68e006ec004b93e179531e829d3339","user":{"login":"cosname","id":529133,"avatar_url":"https://avatars3.githubusercontent.com/u/529133?v=3","gravatar_id":"","url":"https://api.github.com/users/cosname","html_url":"https://github.com/cosname","followers_url":"https://api.github.com/users/cosname/followers","following_url":"https://api.github.com/users/cosname/following{/other_user}","gists_url":"https://api.github.com/users/cosname/gists{/gist_id}","starred_url":"https://api.github.com/users/cosname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosname/subscriptions","organizations_url":"https://api.github.com/users/cosname/orgs","repos_url":"https://api.github.com/users/cosname/repos","events_url":"https://api.github.com/users/cosname/events{/privacy}","received_events_url":"https://api.github.com/users/cosname/received_events","type":"Organization","site_admin":false},"repo":{"id":85083667,"name":"cosx.org","full_name":"cosname/cosx.org","owner":{"login":"cosname","id":529133,"avatar_url":"https://avatars3.githubusercontent.com/u/529133?v=3","gravatar_id":"","url":"https://api.github.com/users/cosname","html_url":"https://github.com/cosname","followers_url":"https://api.github.com/users/cosname/followers","following_url":"https://api.github.com/users/cosname/following{/other_user}","gists_url":"https://api.github.com/users/cosname/gists{/gist_id}","starred_url":"https://api.github.com/users/cosname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosname/subscriptions","organizations_url":"https://api.github.com/users/cosname/orgs","repos_url":"https://api.github.com/users/cosname/repos","events_url":"https://api.github.com/users/cosname/events{/privacy}","received_events_url":"https://api.github.com/users/cosname/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cosname/cosx.org","description":"统计之都主站（测试！）","fork":false,"url":"https://api.github.com/repos/cosname/cosx.org","forks_url":"https://api.github.com/repos/cosname/cosx.org/forks","keys_url":"https://api.github.com/repos/cosname/cosx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosname/cosx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosname/cosx.org/teams","hooks_url":"https://api.github.com/repos/cosname/cosx.org/hooks","issue_events_url":"https://api.github.com/repos/cosname/cosx.org/issues/events{/number}","events_url":"https://api.github.com/repos/cosname/cosx.org/events","assignees_url":"https://api.github.com/repos/cosname/cosx.org/assignees{/user}","branches_url":"https://api.github.com/repos/cosname/cosx.org/branches{/branch}","tags_url":"https://api.github.com/repos/cosname/cosx.org/tags","blobs_url":"https://api.github.com/repos/cosname/cosx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosname/cosx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosname/cosx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosname/cosx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosname/cosx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cosname/cosx.org/languages","stargazers_url":"https://api.github.com/repos/cosname/cosx.org/stargazers","contributors_url":"https://api.github.com/repos/cosname/cosx.org/contributors","subscribers_url":"https://api.github.com/repos/cosname/cosx.org/subscribers","subscription_url":"https://api.github.com/repos/cosname/cosx.org/subscription","commits_url":"https://api.github.com/repos/cosname/cosx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosname/cosx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosname/cosx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosname/cosx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosname/cosx.org/contents/{+path}","compare_url":"https://api.github.com/repos/cosname/cosx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosname/cosx.org/merges","archive_url":"https://api.github.com/repos/cosname/cosx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosname/cosx.org/downloads","issues_url":"https://api.github.com/repos/cosname/cosx.org/issues{/number}","pulls_url":"https://api.github.com/repos/cosname/cosx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cosname/cosx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cosname/cosx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosname/cosx.org/labels{/name}","releases_url":"https://api.github.com/repos/cosname/cosx.org/releases{/id}","deployments_url":"https://api.github.com/repos/cosname/cosx.org/deployments","created_at":"2017-03-15T14:41:00Z","updated_at":"2017-03-18T03:11:05Z","pushed_at":"2017-03-19T08:32:05Z","git_url":"git://github.com/cosname/cosx.org.git","ssh_url":"git@github.com:cosname/cosx.org.git","clone_url":"https://github.com/cosname/cosx.org.git","svn_url":"https://github.com/cosname/cosx.org","homepage":null,"size":3011,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":15,"forks":15,"open_issues":15,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/24"},"html":{"href":"https://github.com/cosname/cosx.org/pull/24"},"issue":{"href":"https://api.github.com/repos/cosname/cosx.org/issues/24"},"comments":{"href":"https://api.github.com/repos/cosname/cosx.org/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cosname/cosx.org/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/cosname/cosx.org/statuses/1488b12c1396195810bbac04513ed7e9c665dd50"}}}}
{"actor":{"display_login":"RockYanShi"}}