{"id":50851,"date":"2024-06-16T10:11:32","date_gmt":"2024-06-16T02:11:32","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=50851"},"modified":"2024-06-16T10:11:32","modified_gmt":"2024-06-16T02:11:32","slug":"%e4%bb%80%e4%b9%88%e8%81%9a%e7%b1%bb%e5%88%86%e6%9e%90%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%e5%b0%b1%e8%a7%a3%e5%86%b3%ef%bc%9f%e8%af%b4%e7%9a%84%e5%b0%b1%e6%98%afk-means%ef%bc%81-3","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=50851","title":{"rendered":"\u4ec0\u4e48\u805a\u7c7b\u5206\u6790\u4e00\u884c\u4ee3\u7801\u5c31\u89e3\u51b3\uff1f\u8bf4\u7684\u5c31\u662fK-means\uff01"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u4ec0\u4e48\u805a\u7c7b\u5206\u6790\u4e00\u884c\u4ee3\u7801\u5c31\u89e3\u51b3\uff1f\u8bf4\u7684\u5c31\u662fK-means\uff01\",\"time\":\"2023-08-23 19:00:12\",\"timeStamp\":\"1692788412\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247491591&#038;idx=3&#038;sn=4e48889f06468ae630443898d8ac5073&#038;chksm=cf7f70c2f808f9d4971c439289a4952ef4cef4978b4bf8c2bf9796d872412a7045b3a48f7092#rd\" target=\"_blank\" rel=\"noopener\">\u4ec0\u4e48\u805a\u7c7b\u5206\u6790\u4e00\u884c\u4ee3\u7801\u5c31\u89e3\u51b3\uff1f\u8bf4\u7684\u5c31\u662fK-means\uff01<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u5e08\u59b9&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-08-23 19:00:12<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1aR\u8bed\u8a00\u5b66\u5f92<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484986&#038;idx=1&#038;sn=877dc418601904cdd67e239865dc2413\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484986&#038;idx=1&#038;sn=877dc418601904cdd67e239865dc2413<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 20px;margin-bottom: 25px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(249, 172, 172);box-shadow: rgb(249, 172, 172) 0px 0px 5px 3px;\">\n<section style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin-top: -14px;margin-bottom: -14px;\" powered-by=\"xiumi.us\">\n<p>{ \u70b9\u51fb\u84dd\u5b57\uff0c\u5173\u6ce8\u6211\u4eec }<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u4eca\u5929\u5c0f\u5e08\u59b9\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u662fK-means\u805a\u7c7b\u7b97\u6cd5\u7684\u6559\u7a0b\uff5eK-means\u805a\u7c7b\u7b97\u6cd5\u662f\u4e00\u79cd\u65e0\u76d1\u7763\u5b66\u4e60\u65b9\u6cd5\uff0c\u7528\u4e8e\u5c06\u6570\u636e\u70b9\u5206\u4e3a\u591a\u4e2a\u4e0d\u540c\u7684\u7c07\u3002K-means\u805a\u7c7b\u7b97\u6cd5\u5728\u751f\u7269\u4fe1\u606f\u6570\u636e\u5206\u6790\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5176\u4e2d\uff0c\u57fa\u56e0\u8868\u8fbe\u805a\u7c7b\u662f\u6700\u4e3a\u5e38\u89c1\u7684\u5e94\u7528\u4e4b\u4e00\u3002\u901a\u8fc7\u5c06\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u5206\u4e3a\u4e0d\u540c\u7684\u7c07\uff0c\u53ef\u4ee5\u5feb\u901f\u5730\u4e86\u89e3\u57fa\u56e0\u7684\u751f\u7269\u5b66\u7279\u5f81\u548c\u8868\u8fbe\u6a21\u5f0f\u3002\u86cb\u767d\u8d28\u7ed3\u6784\u5206\u7c7b\u4e5f\u662fK-means\u7b97\u6cd5\u7684\u91cd\u8981\u5e94\u7528\u4e4b\u4e00\uff0c\u901a\u8fc7\u5bf9\u86cb\u767d\u8d28\u7ed3\u6784\u8fdb\u884c\u5206\u7c7b\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3\u86cb\u767d\u8d28\u7ed3\u6784\u7684\u76f8\u4f3c\u6027\u548c\u5dee\u5f02\u6027\uff0c\u4ece\u800c\u4e3a\u86cb\u767d\u8d28\u529f\u80fd\u7814\u7a76\u548c\u836f\u7269\u8bbe\u8ba1\u63d0\u4f9b\u91cd\u8981\u4fe1\u606f\u3002\u6b64\u5916\uff0cK-means\u7b97\u6cd5\u8fd8\u53ef\u4ee5\u7528\u4e8e\u751f\u7269\u5e8f\u5217\u7684\u6a21\u5f0f\u8bc6\u522b\uff0c\u4f8b\u5982\u5c06DNA\u5e8f\u5217\u6216\u86cb\u767d\u8d28\u5e8f\u5217\u5206\u4e3a\u4e0d\u540c\u7684\u7c07\uff0c\u4ee5\u63a8\u65ad\u5b83\u4eec\u53ef\u80fd\u5177\u6709\u7684\u751f\u7269\u5b66\u529f\u80fd\u3002\u5728\u4f7f\u7528K-means\u7b97\u6cd5\u65f6\uff0c\u9700\u8981\u7279\u522b\u6ce8\u610f\u805a\u7c7b\u7ed3\u679c\u7684\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u6570\u636e\u7c7b\u578b\u548c\u7814\u7a76\u95ee\u9898\u8fdb\u884c\u8c03\u6574\u548c\u4f18\u5316\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u5728K-means\u7b97\u6cd5\u4e2d\uff0c\u7c07\u7684\u6570\u91cfK\u662f\u4e00\u4e2a\u9700\u8981\u9884\u5148\u6307\u5b9a\u7684\u53c2\u6570\u3002\u7b97\u6cd5\u7684\u76ee\u6807\u662f\u5c06\u6240\u6709\u6570\u636e\u70b9\u5206\u914d\u5230K\u4e2a\u7c07\u4e2d\uff0c\u5e76\u4f7f\u6bcf\u4e2a\u7c07\u5185\u90e8\u7684\u6570\u636e\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u5c3d\u53ef\u80fd\u5c0f\uff0c\u800c\u4e0d\u540c\u7c07\u4e4b\u95f4\u7684\u8ddd\u79bb\u5c3d\u53ef\u80fd\u5927\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: rgb(249, 110, 87);\"><strong>K-means\u7b97\u6cd5\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a<\/strong><\/span><\/p>\n<p style=\"white-space: normal;\">step 1. \u968f\u673a\u9009\u62e9K\u4e2a\u521d\u59cb\u805a\u7c7b\u4e2d\u5fc3\u3002<\/p>\n<p style=\"white-space: normal;\">step 2. \u5c06\u6bcf\u4e2a\u6570\u636e\u70b9\u5206\u914d\u5230\u8ddd\u79bb\u6700\u8fd1\u7684\u805a\u7c7b\u4e2d\u5fc3\u6240\u5728\u7684\u7c07\u3002<\/p>\n<p style=\"white-space: normal;\">step 3. \u5bf9\u4e8e\u6bcf\u4e2a\u7c07\uff0c\u91cd\u65b0\u8ba1\u7b97\u8be5\u7c07\u7684\u4e2d\u5fc3\u3002<\/p>\n<p style=\"white-space: normal;\">step 4. \u91cd\u590d\u6b65\u9aa42\u548c\u6b65\u9aa43\uff0c\u76f4\u5230\u805a\u7c7b\u4e2d\u5fc3\u4e0d\u518d\u53d1\u751f\u53d8\u5316\u6216\u8005\u8fbe\u5230\u9884\u5b9a\u7684\u8fed\u4ee3\u6b21\u6570\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">means\u7b97\u6cd5\u7684\u4f18\u70b9\u5305\u62ec\u7b80\u5355\u6613\u884c\u3001\u53ef\u6269\u5c55\u6027\u5f3a\u3001\u8ba1\u7b97\u6548\u7387\u9ad8\u7b49\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u4e0d\u540c\u9886\u57df\u7684\u6570\u636e\u5206\u6790\u548c\u6316\u6398\uff0c\u4f8b\u5982\u56fe\u50cf\u5206\u5272\u3001\u6587\u672c\u805a\u7c7b\u3001\u751f\u7269\u4fe1\u606f\u5b66\u6570\u636e\u5206\u6790\u7b49\u3002\u4f46\u662f\uff0cK-means\u7b97\u6cd5\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\uff0c\u4f8b\u5982\u9700\u8981\u9884\u5148\u6307\u5b9a\u805a\u7c7b\u6570\u91cfK\u3001\u5bf9\u521d\u59cb\u805a\u7c7b\u4e2d\u5fc3\u7684\u9009\u62e9\u654f\u611f\u3001\u5bb9\u6613\u9677\u5165\u5c40\u90e8\u6700\u4f18\u89e3\u7b49\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528K-means\u7b97\u6cd5\u65f6\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u5e94\u7528\u573a\u666f\u8fdb\u884c\u53c2\u6570\u8c03\u6574\u548c\u4f18\u5316\uff0c\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u805a\u7c7b\u7ed3\u679c\u3002<\/p>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><strong>\u5728K-means\u805a\u7c7b\u4e2d\uff0c\u5982\u4f55\u9009\u62e9\u6700\u4f18\u7684K\u503c\u662f\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: rgb(249, 110, 87);\"><strong>\u8098\u90e8\u6cd5\u5219\uff08Elbow method\uff09\uff1a<\/strong><\/span>\u8ba1\u7b97\u4e0d\u540cK\u503c\u4e0b\u7684SSE\uff08\u4e0d\u540c\u805a\u7c7b\u6570\u91cf\u4e0b\u6570\u636e\u70b9\u5230\u5176\u6240\u5c5e\u805a\u7c7b\u4e2d\u5fc3\u8ddd\u79bb\u7684\u5e73\u65b9\u548c\uff09\u5e76\u7ed8\u5236\u6210K\u7684\u51fd\u6570\u56fe\u3002\u5728\u56fe\u8868\u4e2d\uff0c\u9009\u62e9\u4e00\u4e2aK\u503c\uff0c\u4f7f\u5f97\u589e\u52a0K\u503c\u5bf9SSE\u7684\u51cf\u5c11\u6548\u679c\u9010\u6e10\u51cf\u5f31\uff0c\u5f62\u6210\u4e00\u4e2a\u50cf\u624b\u8098\u7684\u62d0\u70b9\u3002\u8fd9\u4e2a\u62d0\u70b9\u5bf9\u5e94\u7684K\u503c\u5c31\u662f\u6700\u4f18\u7684K\u503c\u3002\u53ef\u4ee5\u4f7f\u7528kmeans\u51fd\u6570\u7684\u8f93\u51fa\u7ed3\u679c\u4e2d\u7684total.withinss\u53c2\u6570\u6765\u8ba1\u7b97SSE\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: rgb(249, 110, 87);\"><strong>\u8f6e\u5ed3\u7cfb\u6570\uff08Silhouette Coefficient\uff09\uff1a<\/strong><\/span>\u8ba1\u7b97\u4e0d\u540cK\u503c\u4e0b\u7684\u8f6e\u5ed3\u7cfb\u6570\u5e76\u7ed8\u5236\u6210K\u7684\u51fd\u6570\u56fe\u3002\u8f6e\u5ed3\u7cfb\u6570\u662f\u4e00\u79cd\u5ea6\u91cf\u6570\u636e\u70b9\u805a\u7c7b\u8d28\u91cf\u7684\u6307\u6807\uff0c\u5176\u503c\u4ecb\u4e8e-1\u52301\u4e4b\u95f4\u3002\u5728\u56fe\u8868\u4e2d\uff0c\u9009\u62e9\u4e00\u4e2aK\u503c\uff0c\u4f7f\u5f97\u8f6e\u5ed3\u7cfb\u6570\u6700\u5927\u3002\u53ef\u4ee5\u4f7f\u7528cluster::silhouette\u51fd\u6570\u6765\u8ba1\u7b97\u8f6e\u5ed3\u7cfb\u6570\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: rgb(249, 110, 87);\"><strong>Gap\u7edf\u8ba1\u91cf\uff08Gap statistic\uff09\uff1a<\/strong><\/span><span style=\"color: rgb(0, 0, 0);\">\u8ba1\u7b97\u4e0d<\/span>\u540cK\u503c\u4e0b\u7684Gap\u7edf\u8ba1\u91cf\u5e76\u7ed8\u5236\u6210K\u7684\u51fd\u6570\u56fe\u3002Gap\u7edf\u8ba1\u91cf\u662f\u4e00\u79cd\u5ea6\u91cf\u6570\u636e\u70b9\u805a\u7c7b\u8d28\u91cf\u7684\u6307\u6807\uff0c\u5176\u8ba1\u7b97\u65b9\u6cd5\u662f\u5c06\u6570\u636e\u96c6\u968f\u673a\u5316\u591a\u6b21\uff0c\u5e76\u8ba1\u7b97\u968f\u673a\u5316\u6570\u636e\u96c6\u4e0e\u539f\u59cb\u6570\u636e\u96c6\u4e4b\u95f4\u7684\u8ddd\u79bb\u5dee\u5f02\u3002\u5728\u56fe\u8868\u4e2d\uff0c\u9009\u62e9\u4e00\u4e2aK\u503c\uff0c\u4f7f\u5f97Gap\u7edf\u8ba1\u91cf\u6700\u5927\u3002\u53ef\u4ee5\u4f7f\u7528cluster::clusGap\u51fd\u6570\u8ba1\u7b97Gap\u7edf\u8ba1\u91cf\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e09\u79cd\u65b9\u6cd5\u90fd\u5b58\u5728\u4e00\u5b9a\u7684\u5c40\u9650\u6027\uff0c\u4e0d\u4e00\u5b9a\u9002\u7528\u4e8e\u6240\u6709\u6570\u636e\u96c6\u3002\u56e0\u6b64\uff0c\u6700\u7ec8\u7684K\u503c\u9009\u62e9\u5e94\u8be5\u57fa\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6570\u636e\u7279\u70b9\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u63a5\u4e0b\u6765\uff0c\u5c0f\u5e08\u59b9\u5c06\u4ee5\u7ec4\u7ec7\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u4e3a\u4f8b\uff0c\u7ed9\u5927\u5bb6\u5e26\u6765K-means\u5728R\u8bed\u8a00\u4e2d\u7684\u5177\u4f53\u64cd\u4f5c\u8fc7\u7a0b\uff5e<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u9996\u5148\u6211\u4eec\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684K\u503c\uff0c\u8fd9\u91cc\u5c0f\u5e08\u59b9\u4f1a\u5e26\u5927\u5bb6\u628a3\u79cd\u65b9\u6cd5\u90fd\u8fc7\u4e00\u904d\u54e6\uff5e<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: rgb(0, 0, 0);\"><strong>\u6211\u4eec\u5148\u5bfc\u5165\u76f8\u5173\u7684R\u5305\u4ee5\u53ca\u6211\u4eec\u7684\u6570\u636e\uff1a<\/strong><\/span><\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><code><span class=\"code-snippet_outer\">library(cluster)<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">library(tissuesGeneExpression)<\/span><\/code><code><span class=\"code-snippet_outer\">data(tissuesGeneExpression)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 20px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 1px;min-width: 5%;height: auto;box-shadow: rgb(239, 135, 135) 6px 6px 0px 0px;padding: 8px;\">\n<section style=\"text-align: left;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;font-size: 17px;\">\n<p style=\"white-space: normal;\"><strong>\u8098\u90e8\u6cd5\u5219\uff08Elbow method\uff09<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u8ba1\u7b97\u4e0d\u540cK\u503c\u4e0b\u7684SSE<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sse &lt;- <span class=\"code-snippet__built_in\">c<\/span>()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">for<\/span> (k <span class=\"code-snippet__keyword\">in<\/span> <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">10<\/span>) {<\/span><\/code><code><span class=\"code-snippet_outer\">kmeans_fit &lt;- kmeans(e, k)<\/span><\/code><code><span class=\"code-snippet_outer\">sse[k] &lt;- kmeans_fit$tot.withinss<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236SSE-K\u66f2\u7ebf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df &lt;- data.frame(k = <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">10<\/span>, SSE = sse)<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(df, aes(x = k, y = SSE)) + geom_line() + geom_point() +<\/span><\/code><code><span class=\"code-snippet_outer\">labs(title = <span class=\"code-snippet__string\">\"SSE-K Curve\"<\/span>, x = <span class=\"code-snippet__string\">\"K\"<\/span>, y = <span class=\"code-snippet__string\">\"SSE\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.6166666666666667\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_0CqPdQvp4yPxuiauu6kyKSgXf1mO3w-3.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEU6D3adWhUYK7DAicanbiajFxiaKiaToKccdf56MicH1IQXE59TCZ0CqPdQvp4yPxuiauu6kyKSgXf1mO3w\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u52305\u662f\u6bd4\u8f83\u5408\u9002\u7684\u5206\u7c7b\u6570\u91cf<\/p>\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 20px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 1px;min-width: 5%;height: auto;box-shadow: rgb(239, 135, 135) 6px 6px 0px 0px;padding: 8px;\">\n<section style=\"text-align: left;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;font-size: 17px;\">\n<p style=\"white-space: normal;\"><strong>\u8f6e\u5ed3\u7cfb\u6570\uff08Silhouette Coefficient\uff09<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u8ba1\u7b97\u4e0d\u540cK\u503c\u4e0b\u7684\u8f6e\u5ed3\u7cfb\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sil &lt;- <span class=\"code-snippet__built_in\">c<\/span>()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">for<\/span> (k <span class=\"code-snippet__keyword\">in<\/span> <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">4<\/span>) {<\/span><\/code><code><span class=\"code-snippet_outer\">kmeans_fit &lt;- kmeans(e, k)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> (nrow(table(kmeans_fit$cluster)) &gt; <span class=\"code-snippet__number\">1<\/span>) {<\/span><\/code><code><span class=\"code-snippet_outer\">sil[k] &lt;- mean(silhouette(kmeans_fit$cluster, dist(e)))<\/span><\/code><code><span class=\"code-snippet_outer\">} <span class=\"code-snippet__keyword\">else<\/span> {<\/span><\/code><code><span class=\"code-snippet_outer\">sil[k] &lt;- <span class=\"code-snippet__literal\">NA<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u8f6e\u5ed3\u7cfb\u6570-K\u66f2\u7ebf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df &lt;- data.frame(k = <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">4<\/span>, Silhouette = sil[<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">4<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(df, aes(x = k, y = Silhouette)) + geom_line() + geom_point() +<\/span><\/code><code><span class=\"code-snippet_outer\">labs(title = <span class=\"code-snippet__string\">\"Silhouette-K Curve\"<\/span>, x = <span class=\"code-snippet__string\">\"K\"<\/span>, y = <span class=\"code-snippet__string\">\"Silhouette\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6222222222222222\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_ZrrPv8l4S8vnHRbzNbzdjDULy6ujpQ-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEU6D3adWhUYK7DAicanbiajFxDL2UU0bFrmBWq6SsIiczfqdx7ZrrPv8l4S8vnHRbzNbzdjDULy6ujpQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u8fd9\u91cc\u5219\u5efa\u8bae\u5206\u7c7b\u6570\u91cf\u4e3a4<\/p>\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 20px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 1px;min-width: 5%;height: auto;box-shadow: rgb(239, 135, 135) 6px 6px 0px 0px;padding: 8px;\">\n<section style=\"text-align: left;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;font-size: 17px;\">\n<p style=\"white-space: normal;\"><strong>Gap\u7edf\u8ba1\u91cf\uff08Gap statistic\uff09<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u8ba1\u7b97\u4e0d\u540cK\u503c\u4e0b\u7684Gap\u7edf\u8ba1\u91cf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">gap &lt;- clusGap(e, FUN = kmeans, nstart = <span class=\"code-snippet__number\">25<\/span>, K.max = <span class=\"code-snippet__number\">10<\/span>, B = <span class=\"code-snippet__number\">50<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236Gap-K\u66f2\u7ebf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df &lt;- data.frame(k = <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">10<\/span>, Gap = gap$Tab[, <span class=\"code-snippet__string\">\"gap\"<\/span>], SE = gap$Tab[, <span class=\"code-snippet__string\">\"SE.sim\"<\/span>],<\/span><\/code><code><span class=\"code-snippet_outer\">Upper = gap$Tab[, <span class=\"code-snippet__string\">\"gap\"<\/span>] + gap$Tab[, <span class=\"code-snippet__string\">\"SE.sim\"<\/span>],<\/span><\/code><code><span class=\"code-snippet_outer\">Lower = gap$Tab[, <span class=\"code-snippet__string\">\"gap\"<\/span>] - gap$Tab[, <span class=\"code-snippet__string\">\"SE.sim\"<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(df, aes(x = k)) + geom_line(aes(y = Gap)) + geom_point(aes(y = Gap)) +<\/span><\/code><code><span class=\"code-snippet_outer\">geom_errorbar(aes(ymin = Lower, ymax = Upper), width = <span class=\"code-snippet__number\">0.2<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\">labs(title = <span class=\"code-snippet__string\">\"Gap-K Curve\"<\/span>, x = <span class=\"code-snippet__string\">\"K\"<\/span>, y = <span class=\"code-snippet__string\">\"Gap\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6351851851851852\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_gTKAGn2icbadBqJoNdpVFcJoeJv6Ng-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEU6D3adWhUYK7DAicanbiajFxNJxQ120aLBBGsK2uHEm9V8A5VgTKAGn2icbadBqJoNdpVFcJoeJv6Ng\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u53ef\u4ee5\u7b80\u5355\u5730\u4f7f\u7528kmeans\uff08 \uff09\u51fd\u6570\u8fdb\u884c\u805a\u7c7b\u5566<br  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">k &lt;- kmeans(e, <span class=\"code-snippet__number\">4<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u76f4\u63a5\u67e5\u770b\u805a\u7c7b\u7ed3\u679c<br  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">print(k$cluster)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.26666666666666666\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_x0ZJ6rWgMOmyAqDnDBmSwRVItuiafQ-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEU6D3adWhUYK7DAicanbiajFxJNicicLa18B26ltXwlXPhOdqf75x0ZJ6rWgMOmyAqDnDBmSwRVItuiafQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u53ef\u89c6\u5316\u805a\u7c7b\u7ed3\u679c<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">plot(e, col = k$cluster)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u7ed8\u5236\u805a\u7c7b\u4e2d\u5fc3<br  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">points(k$centers, col = <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">3<\/span>, pch = <span class=\"code-snippet__number\">8<\/span>, cex = <span class=\"code-snippet__number\">2<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.5685185185185185\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_IQXsRHI3hEheGxVzXlbrMQmvvBgkNg-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEU6D3adWhUYK7DAicanbiajFxxKm9VQBxkFVzvBobRSrKicuIrIQXsRHI3hEheGxVzXlbrMQmvvBgkNg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u8fd9\u5c31\u662fK-means\u805a\u7c7b\u5206\u6790\u5566\uff01\u6700\u91cd\u8981\u7684\u90e8\u5206\u8fd8\u662f\u5982\u4f55\u9009\u62e9K\u503c\uff0c\u5efa\u8bae\u5c0f\u4f19\u4f34\u4eec\u8ba4\u771f\u601d\u8003\u6587\u4e2d\u5173\u4e8e\u9009\u62e9K\u503c\u7684\u90e8\u5206\u54e6\uff01<br  \/><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u66f4\u591a\u5b9e\u7528\u65b9\u4fbf\u7684\u5c0f\u5de5\u5177\u5728\u4e91\u751f\u4fe1\u5e73\u53f0\u7b49\u7740\u5927\u5bb6\u54e6\uff01<\/p>\n<p style=\"white-space: normal;\">http:\/\/www.biocloudservice.com\/home.html<\/p>\n<\/section>\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: 33.33%;align-self: center;flex: 0 0 auto;\">\n<section style=\"margin-top: 0.5em;margin-bottom: 0.5em;\" powered-by=\"xiumi.us\">\n<section style=\"border-top: 1px dashed rgb(249, 172, 172);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;margin-right: 20px;margin-left: 20px;\">\n<section style=\"margin-top: -3px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;color: rgb(246, 207, 63);font-size: 20px;\">\n<p style=\"text-align: center;white-space: normal;\">\u2605<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: 33.3333%;align-self: center;flex: 0 0 auto;\">\n<section style=\"margin-top: 0.5em;margin-bottom: 0.5em;\" powered-by=\"xiumi.us\">\n<section style=\"border-top: 1px dashed rgb(249, 172, 172);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3488888888888889\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_BoDuficWb7YjnP0CXo0mIcibhsXn8w-2.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/oCSOtP61aEUlxqHhbZryhECGXicgBrLn1ZkgkpYia2qsgSgNWPQMp0RiaIAmlBoDuficWb7YjnP0CXo0mIcibhsXn8w\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"900\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p style=\"margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5555555555555556\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_akXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEXjjmsEC5aXz0RE4be2ib1fJPnBD8yX0Z6OF2zocd2ngHpLOakXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"900\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u805a\u7c7b\u5206\u6790\u4e00\u884c\u4ee3\u7801\u5c31\u89e3\u51b3\uff1f\u8bf4\u7684\u5c31\u662fK-means\uff01 \u5c0f\u5e08\u59b9&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp;&#038;nbs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/50851"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50851"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/50851\/revisions"}],"predecessor-version":[{"id":50864,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/50851\/revisions\/50864"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}