{"id":264,"date":"2012-10-08T12:19:35","date_gmt":"2012-10-08T03:19:35","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=264"},"modified":"2014-02-23T22:04:48","modified_gmt":"2014-02-23T13:04:48","slug":"k-%e5%b9%b3%e5%9d%87%e6%b3%95%e3%81%a7%e3%82%af%e3%83%a9%e3%82%b9%e3%82%bf%e3%83%bc%e5%88%86%e6%9e%90%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%ae%e3%83%91%e3%83%83%e3%82%b1%e3%83%bc%e3%82%b8%e3%82%92","status":"publish","type":"post","link":"https:\/\/blog.id774.net\/entry\/2012\/10\/08\/264\/","title":{"rendered":"K \u5e73\u5747\u6cd5\u3067\u30af\u30e9\u30b9\u30bf\u5206\u6790\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f"},"content":{"rendered":"<p><a href=\"http:\/\/ibisforest.org\/index.php?k-means%E6%B3%95\">K \u5e73\u5747\u6cd5<\/a>\u3068\u3044\u3046\u306e\u306f\u975e\u968e\u5c64\u578b\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u306e\u624b\u6cd5\u306e\u3072\u3068\u3064\u3002\u3053\u308c\u3092\u624b\u8efd\u306b\u304a\u3053\u306a\u3046 Rubygems \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">gem install kmeans<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>kmeans \u30d1\u30c3\u30b1\u30fc\u30b8<br \/>\n<a href=\"http:\/\/rubygems.org\/gems\/kmeans\">http:\/\/rubygems.org\/gems\/kmeans<\/a><\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<br \/>\n<a href=\"https:\/\/github.com\/id774\/kmeans\">https:\/\/github.com\/id774\/kmeans<\/a><\/p>\n<p>\u4ed5\u4e8b\u3084\u52c9\u5f37\u306e\u5408\u9593\u306b\u3084\u308b\u30bd\u30ea\u30c6\u30a3\u30a2\u306e\u4ee3\u308f\u308a\u306b\u3001\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3057\u305f\u7d71\u8a08\u30c7\u30fc\u30bf\u3092\u5206\u5272\u6700\u9069\u5316\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3061\u3087\u3063\u3068\u6c17\u5206\u8ee2\u63db\u3059\u308b\u3068\u3044\u3063\u305f\u7528\u9014\u306b\u3082\u5f79\u7acb\u3064\u3002<\/p>\n<p><strong>K \u5e73\u5747\u6cd5\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/strong><\/p>\n<p><a href=\"http:\/\/ibisforest.org\/index.php?%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92\">\u6a5f\u68b0\u5b66\u7fd2<\/a>\u306b\u306f\u3055\u307e\u3055\u3099\u307e\u306a\u30a2\u30eb\u30b3\u3099\u30ea\u30b9\u3099\u30e0\u304b\u3099\u3042\u308b\u304c\u3001\u5927\u96d1\u628a\u306b\u5206\u985e\u3059\u308b\u3068\u6559\u5e2b\u3042\u308a\u5b66\u7fd2\u3068\u6559\u5e2b\u306a\u3057\u5b66\u7fd2\u306b\u5206\u3051\u3089\u308c\u308b\u3002\u6559\u5e2b\u306a\u3057\u5b66\u7fd2\u3068\u306f\u3001\u4e0e\u3048\u3089\u308c\u305f\u30c6\u3099\u30fc\u30bf\u3092\u5916\u7684\u57fa\u6e96\u306a\u3057\u306b\u81ea\u52d5\u7684\u306b\u5206\u985e\u3059\u308b\u624b\u6cd5\u3066\u3099\u3042\u308b\u3002\u3088\u308a\u66d6\u6627\u306a\u554f\u984c\u8a2d\u5b9a\u3068\u306a\u308a\u3001\u5165\u529b\u30c6\u3099\u30fc\u30bf\u306e\u307f\u304b\u3099\u4e0e\u3048\u3089\u308c\u308b\u3002 K \u5e73\u5747\u6cd5\u306f\u6559\u5e2b\u306a\u3057\u5b66\u7fd2\u306b\u5206\u985e\u3055\u308c\u308b\u30af\u30e9\u30b9\u30bf\u5206\u6790\u306e\u4e00\u7a2e\u3067\u3042\u308b\u3002<\/p>\n<p>\u5404\u89b3\u6e2c\u5024\u304c d \u6b21\u5143\u306e\u5b9f\u6570\u30d9\u30af\u30c8\u30eb\u3067\u3042\u308b\u89b3\u6e2c\u5024\u306e\u7d44 (x1, x2, \u2026, xn) \u3068\u3059\u308b\u3002\u5404\u8981\u7d20\u306b\u30e9\u30f3\u30c0\u30e0\u306b\u5024\u3092\u5272\u308a\u5f53\u3066\u3001\u5272\u308a\u632f\u3063\u305f\u30c7\u30fc\u30bf\u3054\u3068\u306b\u5404\u30af\u30e9\u30b9\u30bf\u306e\u4e2d\u5fc3\u3092\u6c42\u3081\u308b\u3002\u5404\u8981\u7d20\u3092\u30af\u30e9\u30b9\u30bf\u306e\u4e2d\u5fc3\u306b\u5272\u308a\u5f53\u3066\u306a\u304a\u3057\u3001\u3053\u308c\u3092\u30af\u30e9\u30b9\u30bf\u5272\u308a\u5f53\u3066\u306e\u5909\u5316\u304c\u7121\u304f\u306a\u308b\u307e\u3067\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u7e70\u308a\u8fd4\u3059\u3002\u6b21\u306e\u5f0f\u3067\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/blog.id774.net\/entry\/wp-content\/uploads\/2012\/10\/11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.id774.net\/entry\/wp-content\/uploads\/2012\/10\/11.png\" alt=\"\" title=\"1\" width=\"230\" height=\"62\" class=\"box\" \/><\/a><\/p>\n<p>\u03bci \u306f Si \u4e2d\u306e\u70b9\u306e\u5e73\u5747\u3067\u3042\u308b\u3002<\/p>\n<p><a href=\"http:\/\/tech.nitoyon.com\/ja\/blog\/2009\/04\/09\/kmeans-visualise\/\">nitoyon \u3055\u3093\u306e K-means \u6cd5\u3092\u30d3\u30b8\u30e5\u30a2\u30e9\u30a4\u30ba\u3057\u3066\u307f\u305f\u3068\u3044\u3046\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u4f75\u305b\u3066\u53c2\u7167\u3059\u308b\u3068\u826f\u3044\u3002<\/p>\n<p><strong>\u53c2\u8003\u306b\u3057\u305f\u60c5\u5831<\/strong><\/p>\n<p><a href=\"http:\/\/d.hatena.ne.jp\/kj-ki\/20090110\/p1\">kj-ki \u3055\u3093<\/a>\u3001 <a href=\"http:\/\/d.hatena.ne.jp\/mem16\/20090303\/1236092475\">mem16 \u3055\u3093<\/a>\u3001 <a href=\"http:\/\/d.hatena.ne.jp\/shokai\/20081114\/1226690383\">shokai \u3055\u3093<\/a>\u306e\u30d6\u30ed\u30b0\u3092\u5927\u3044\u306b\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u53c2\u8003\u306b\u3057\u305f\u3068\u3044\u3046\u3088\u308a\u307e\u3093\u307e\u6d41\u7528\u3057\u305f\u3093\u3058\u3083\u306d\u3048\u306e\u304b\u3063\u3066\u30ec\u30d9\u30eb\u3067\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u305d\u306e\u4ed6\u306e Ruby \u306b\u3088\u308b\u5b9f\u88c5<\/strong><\/p>\n<p>Ruby \u306b\u3088\u308b K \u5e73\u5747\u6cd5\u306e\u5b9f\u88c5\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308b\u3002<\/p>\n<p>AI4R :: Artificial Intelligence for Ruby<br \/>\n<a href=\"http:\/\/ai4r.org\/index.html\">http:\/\/ai4r.org\/index.html<\/a><\/p>\n<p>K-Means<br \/>\n<a href=\"https:\/\/github.com\/reddavis\/K-Means\">https:\/\/github.com\/reddavis\/K-Means<\/a><\/p>\n<p>\u3069\u3046\u898b\u3066\u3082\u8eca\u8f2a\u306e\u518d\u767a\u660e\u3067\u3059\u3002\u672c\u5f53\u306b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>K \u5e73\u5747\u6cd5\u3068\u3044\u3046\u306e\u306f\u975e\u968e\u5c64\u578b\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u306e\u624b\u6cd5\u306e\u3072\u3068\u3064\u3002\u3053\u308c\u3092\u624b\u8efd\u306b\u304a\u3053\u306a\u3046 Rubygems \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 1gem install kmeans kmeans \u30d1\u30c3\u30b1\u30fc\u30b8 http:\/\/rub &#8230; <a title=\"K \u5e73\u5747\u6cd5\u3067\u30af\u30e9\u30b9\u30bf\u5206\u6790\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f\" class=\"read-more\" href=\"https:\/\/blog.id774.net\/entry\/2012\/10\/08\/264\/\" aria-label=\"K \u5e73\u5747\u6cd5\u3067\u30af\u30e9\u30b9\u30bf\u5206\u6790\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-diary"],"_links":{"self":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":0,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}