{"action":"created","comment":{"url":"https://api.github.com/repos/haifengl/smile/pulls/comments/172010404","pull_request_review_id":100968751,"id":172010404,"diff_hunk":"@@ -0,0 +1,17 @@\n+package smile.math.distance\n+\n+import scala.math.pow\n+\n+/**\n+ * @author Beck Gaël\n+ *\n+ **/\n+class MeanMahanttan extends BinaryDistance {","path":"scala/src/main/scala/smile/clustering/distance/Binary/MeanMahanttan.scala","position":9,"original_position":9,"commit_id":"21d8d96d23498c5bc8b2cde27d6220a8472d4ba5","original_commit_id":"ee7eb27831b3d095bf9d27f062206b8381a0f6d7","user":{"login":"beckgael","id":18026983,"avatar_url":"https://avatars1.githubusercontent.com/u/18026983?v=4","gravatar_id":"","url":"https://api.github.com/users/beckgael","html_url":"https://github.com/beckgael","followers_url":"https://api.github.com/users/beckgael/followers","following_url":"https://api.github.com/users/beckgael/following{/other_user}","gists_url":"https://api.github.com/users/beckgael/gists{/gist_id}","starred_url":"https://api.github.com/users/beckgael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckgael/subscriptions","organizations_url":"https://api.github.com/users/beckgael/orgs","repos_url":"https://api.github.com/users/beckgael/repos","events_url":"https://api.github.com/users/beckgael/events{/privacy}","received_events_url":"https://api.github.com/users/beckgael/received_events","type":"User","site_admin":false},"body":"[A survey of binary measurement.pdf](https://github.com/haifengl/smile/files/1777261/A.survey.of.binary.measurement.pdf)\r\nBased on that survey difference between Manhattan and Mean Manhattan are as follow.\r\na,b,c,d are the resuts of the conteingency matrix\r\nManhattan : b + c\r\nMean Manhantan : (b + c) / (a + b + c + d) ","created_at":"2018-03-03T08:26:08Z","updated_at":"2018-03-03T08:26:08Z","html_url":"https://github.com/haifengl/smile/pull/277#discussion_r172010404","pull_request_url":"https://api.github.com/repos/haifengl/smile/pulls/277","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/haifengl/smile/pulls/comments/172010404"},"html":{"href":"https://github.com/haifengl/smile/pull/277#discussion_r172010404"},"pull_request":{"href":"https://api.github.com/repos/haifengl/smile/pulls/277"}},"in_reply_to_id":171249274},"pull_request":{"url":"https://api.github.com/repos/haifengl/smile/pulls/277","id":171450279,"html_url":"https://github.com/haifengl/smile/pull/277","diff_url":"https://github.com/haifengl/smile/pull/277.diff","patch_url":"https://github.com/haifengl/smile/pull/277.patch","issue_url":"https://api.github.com/repos/haifengl/smile/issues/277","number":277,"state":"open","locked":false,"title":"Add Binary K-Modes working with different binary disimilarity measure","user":{"login":"beckgael","id":18026983,"avatar_url":"https://avatars1.githubusercontent.com/u/18026983?v=4","gravatar_id":"","url":"https://api.github.com/users/beckgael","html_url":"https://github.com/beckgael","followers_url":"https://api.github.com/users/beckgael/followers","following_url":"https://api.github.com/users/beckgael/following{/other_user}","gists_url":"https://api.github.com/users/beckgael/gists{/gist_id}","starred_url":"https://api.github.com/users/beckgael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckgael/subscriptions","organizations_url":"https://api.github.com/users/beckgael/orgs","repos_url":"https://api.github.com/users/beckgael/repos","events_url":"https://api.github.com/users/beckgael/events{/privacy}","received_events_url":"https://api.github.com/users/beckgael/received_events","type":"User","site_admin":false},"body":"Hi,\r\nI implemented the binary K-Modes algorithms and i supposed it will be a better place to it in this libary.\r\nHere a binary dataset which represent digits from 0 to 9. 200 first are 0, then 200 next 1 and going on.\r\n[digits.zip](https://github.com/haifengl/smile/files/1759740/digits.zip)\r\nI tested only on this dataset but it gives good visual results if you visualize centroids with hexmap.\r\n'''\r\n\t\tcentroids.map{ case (_, flatCentroid) => flatCentroid.grouped(15).toArray }.foreach( centroid => hexmap(centroid, Array(Palette.BLACK, Palette.LIGHT_GRAY)))\r\n'''\r\nI suppose i don't have made every good choice but i will be happy to follow your advices to improve the overall.\r\n\r\nThank you\r\nGaël\r\n","created_at":"2018-02-26T18:08:43Z","updated_at":"2018-03-03T08:26:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f99abb56f182385f132bcedde7282ffcf2e3a3e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":722522908,"url":"https://api.github.com/repos/haifengl/smile/labels/new%20feature","name":"new feature","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/haifengl/smile/pulls/277/commits","review_comments_url":"https://api.github.com/repos/haifengl/smile/pulls/277/comments","review_comment_url":"https://api.github.com/repos/haifengl/smile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haifengl/smile/issues/277/comments","statuses_url":"https://api.github.com/repos/haifengl/smile/statuses/21d8d96d23498c5bc8b2cde27d6220a8472d4ba5","head":{"label":"beckgael:master","ref":"master","sha":"21d8d96d23498c5bc8b2cde27d6220a8472d4ba5","user":{"login":"beckgael","id":18026983,"avatar_url":"https://avatars1.githubusercontent.com/u/18026983?v=4","gravatar_id":"","url":"https://api.github.com/users/beckgael","html_url":"https://github.com/beckgael","followers_url":"https://api.github.com/users/beckgael/followers","following_url":"https://api.github.com/users/beckgael/following{/other_user}","gists_url":"https://api.github.com/users/beckgael/gists{/gist_id}","starred_url":"https://api.github.com/users/beckgael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckgael/subscriptions","organizations_url":"https://api.github.com/users/beckgael/orgs","repos_url":"https://api.github.com/users/beckgael/repos","events_url":"https://api.github.com/users/beckgael/events{/privacy}","received_events_url":"https://api.github.com/users/beckgael/received_events","type":"User","site_admin":false},"repo":{"id":104029402,"name":"smile","full_name":"beckgael/smile","owner":{"login":"beckgael","id":18026983,"avatar_url":"https://avatars1.githubusercontent.com/u/18026983?v=4","gravatar_id":"","url":"https://api.github.com/users/beckgael","html_url":"https://github.com/beckgael","followers_url":"https://api.github.com/users/beckgael/followers","following_url":"https://api.github.com/users/beckgael/following{/other_user}","gists_url":"https://api.github.com/users/beckgael/gists{/gist_id}","starred_url":"https://api.github.com/users/beckgael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckgael/subscriptions","organizations_url":"https://api.github.com/users/beckgael/orgs","repos_url":"https://api.github.com/users/beckgael/repos","events_url":"https://api.github.com/users/beckgael/events{/privacy}","received_events_url":"https://api.github.com/users/beckgael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beckgael/smile","description":"Statistical Machine Intelligence & Learning Engine","fork":true,"url":"https://api.github.com/repos/beckgael/smile","forks_url":"https://api.github.com/repos/beckgael/smile/forks","keys_url":"https://api.github.com/repos/beckgael/smile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beckgael/smile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beckgael/smile/teams","hooks_url":"https://api.github.com/repos/beckgael/smile/hooks","issue_events_url":"https://api.github.com/repos/beckgael/smile/issues/events{/number}","events_url":"https://api.github.com/repos/beckgael/smile/events","assignees_url":"https://api.github.com/repos/beckgael/smile/assignees{/user}","branches_url":"https://api.github.com/repos/beckgael/smile/branches{/branch}","tags_url":"https://api.github.com/repos/beckgael/smile/tags","blobs_url":"https://api.github.com/repos/beckgael/smile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beckgael/smile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beckgael/smile/git/refs{/sha}","trees_url":"https://api.github.com/repos/beckgael/smile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beckgael/smile/statuses/{sha}","languages_url":"https://api.github.com/repos/beckgael/smile/languages","stargazers_url":"https://api.github.com/repos/beckgael/smile/stargazers","contributors_url":"https://api.github.com/repos/beckgael/smile/contributors","subscribers_url":"https://api.github.com/repos/beckgael/smile/subscribers","subscription_url":"https://api.github.com/repos/beckgael/smile/subscription","commits_url":"https://api.github.com/repos/beckgael/smile/commits{/sha}","git_commits_url":"https://api.github.com/repos/beckgael/smile/git/commits{/sha}","comments_url":"https://api.github.com/repos/beckgael/smile/comments{/number}","issue_comment_url":"https://api.github.com/repos/beckgael/smile/issues/comments{/number}","contents_url":"https://api.github.com/repos/beckgael/smile/contents/{+path}","compare_url":"https://api.github.com/repos/beckgael/smile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beckgael/smile/merges","archive_url":"https://api.github.com/repos/beckgael/smile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beckgael/smile/downloads","issues_url":"https://api.github.com/repos/beckgael/smile/issues{/number}","pulls_url":"https://api.github.com/repos/beckgael/smile/pulls{/number}","milestones_url":"https://api.github.com/repos/beckgael/smile/milestones{/number}","notifications_url":"https://api.github.com/repos/beckgael/smile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beckgael/smile/labels{/name}","releases_url":"https://api.github.com/repos/beckgael/smile/releases{/id}","deployments_url":"https://api.github.com/repos/beckgael/smile/deployments","created_at":"2017-09-19T05:13:27Z","updated_at":"2017-09-19T05:13:33Z","pushed_at":"2018-03-02T18:26:50Z","git_url":"git://github.com/beckgael/smile.git","ssh_url":"git@github.com:beckgael/smile.git","clone_url":"https://github.com/beckgael/smile.git","svn_url":"https://github.com/beckgael/smile","homepage":"http://haifengl.github.io/smile/","size":162487,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"haifengl:master","ref":"master","sha":"a972a89b25345dad6050c0469d9d77bb538c2a95","user":{"login":"haifengl","id":5502052,"avatar_url":"https://avatars3.githubusercontent.com/u/5502052?v=4","gravatar_id":"","url":"https://api.github.com/users/haifengl","html_url":"https://github.com/haifengl","followers_url":"https://api.github.com/users/haifengl/followers","following_url":"https://api.github.com/users/haifengl/following{/other_user}","gists_url":"https://api.github.com/users/haifengl/gists{/gist_id}","starred_url":"https://api.github.com/users/haifengl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haifengl/subscriptions","organizations_url":"https://api.github.com/users/haifengl/orgs","repos_url":"https://api.github.com/users/haifengl/repos","events_url":"https://api.github.com/users/haifengl/events{/privacy}","received_events_url":"https://api.github.com/users/haifengl/received_events","type":"User","site_admin":false},"repo":{"id":26921116,"name":"smile","full_name":"haifengl/smile","owner":{"login":"haifengl","id":5502052,"avatar_url":"https://avatars3.githubusercontent.com/u/5502052?v=4","gravatar_id":"","url":"https://api.github.com/users/haifengl","html_url":"https://github.com/haifengl","followers_url":"https://api.github.com/users/haifengl/followers","following_url":"https://api.github.com/users/haifengl/following{/other_user}","gists_url":"https://api.github.com/users/haifengl/gists{/gist_id}","starred_url":"https://api.github.com/users/haifengl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haifengl/subscriptions","organizations_url":"https://api.github.com/users/haifengl/orgs","repos_url":"https://api.github.com/users/haifengl/repos","events_url":"https://api.github.com/users/haifengl/events{/privacy}","received_events_url":"https://api.github.com/users/haifengl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haifengl/smile","description":"Statistical Machine Intelligence & Learning Engine","fork":false,"url":"https://api.github.com/repos/haifengl/smile","forks_url":"https://api.github.com/repos/haifengl/smile/forks","keys_url":"https://api.github.com/repos/haifengl/smile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haifengl/smile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haifengl/smile/teams","hooks_url":"https://api.github.com/repos/haifengl/smile/hooks","issue_events_url":"https://api.github.com/repos/haifengl/smile/issues/events{/number}","events_url":"https://api.github.com/repos/haifengl/smile/events","assignees_url":"https://api.github.com/repos/haifengl/smile/assignees{/user}","branches_url":"https://api.github.com/repos/haifengl/smile/branches{/branch}","tags_url":"https://api.github.com/repos/haifengl/smile/tags","blobs_url":"https://api.github.com/repos/haifengl/smile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haifengl/smile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haifengl/smile/git/refs{/sha}","trees_url":"https://api.github.com/repos/haifengl/smile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haifengl/smile/statuses/{sha}","languages_url":"https://api.github.com/repos/haifengl/smile/languages","stargazers_url":"https://api.github.com/repos/haifengl/smile/stargazers","contributors_url":"https://api.github.com/repos/haifengl/smile/contributors","subscribers_url":"https://api.github.com/repos/haifengl/smile/subscribers","subscription_url":"https://api.github.com/repos/haifengl/smile/subscription","commits_url":"https://api.github.com/repos/haifengl/smile/commits{/sha}","git_commits_url":"https://api.github.com/repos/haifengl/smile/git/commits{/sha}","comments_url":"https://api.github.com/repos/haifengl/smile/comments{/number}","issue_comment_url":"https://api.github.com/repos/haifengl/smile/issues/comments{/number}","contents_url":"https://api.github.com/repos/haifengl/smile/contents/{+path}","compare_url":"https://api.github.com/repos/haifengl/smile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haifengl/smile/merges","archive_url":"https://api.github.com/repos/haifengl/smile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haifengl/smile/downloads","issues_url":"https://api.github.com/repos/haifengl/smile/issues{/number}","pulls_url":"https://api.github.com/repos/haifengl/smile/pulls{/number}","milestones_url":"https://api.github.com/repos/haifengl/smile/milestones{/number}","notifications_url":"https://api.github.com/repos/haifengl/smile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haifengl/smile/labels{/name}","releases_url":"https://api.github.com/repos/haifengl/smile/releases{/id}","deployments_url":"https://api.github.com/repos/haifengl/smile/deployments","created_at":"2014-11-20T16:28:12Z","updated_at":"2018-03-02T22:13:25Z","pushed_at":"2018-03-02T18:26:52Z","git_url":"git://github.com/haifengl/smile.git","ssh_url":"git@github.com:haifengl/smile.git","clone_url":"https://github.com/haifengl/smile.git","svn_url":"https://github.com/haifengl/smile","homepage":"http://haifengl.github.io/smile/","size":163157,"stargazers_count":3658,"watchers_count":3658,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":693,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":693,"open_issues":22,"watchers":3658,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haifengl/smile/pulls/277"},"html":{"href":"https://github.com/haifengl/smile/pull/277"},"issue":{"href":"https://api.github.com/repos/haifengl/smile/issues/277"},"comments":{"href":"https://api.github.com/repos/haifengl/smile/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/haifengl/smile/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/haifengl/smile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haifengl/smile/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/haifengl/smile/statuses/21d8d96d23498c5bc8b2cde27d6220a8472d4ba5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"beckgael"}}