{"id":5478,"date":"2025-05-19T09:11:39","date_gmt":"2025-05-19T01:11:39","guid":{"rendered":"http:\/\/xinblog.ltd\/?p=5478"},"modified":"2025-05-19T08:39:27","modified_gmt":"2025-05-19T00:39:27","slug":"%e5%9f%ba%e7%a1%80%e6%95%b0%e5%ad%a6%e8%af%be25-%e6%96%87%e6%9c%ac%e8%81%9a%e7%b1%bb%e7%ae%97%e6%b3%95","status":"publish","type":"post","link":"http:\/\/xinblog.ltd\/?p=5478","title":{"rendered":"\u57fa\u7840\u6570\u5b66\u8bfe25 \u6587\u672c\u805a\u7c7b\u7b97\u6cd5"},"content":{"rendered":"<p>\u57fa\u7840\u6570\u5b66\u8bfe25 \u6587\u672c\u805a\u7c7b\u7b97\u6cd5<\/p>\n<p>\u6211\u4eec\u8fd9\u4e00\u5f20\u770b\u4e0b\u5411\u91cf\u7a7a\u95f4\u5982\u4f55\u5728\u5b9e\u9645\u4e2d\u843d\u5730\u7684\u3002<\/p>\n<p>\u5728\u6982\u7387\u7edf\u8ba1\u6a21\u5757\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5206\u7c7b\u548c\u56de\u5f52\u4e24\u79cd\u76d1\u7763\u5f0f\u5b66\u4e60\uff0c\u76d1\u7763\u5f0f\u5b66\u4e60\u4e3b\u8981\u76ee\u7684\u662f\u901a\u8fc7\u8bad\u7ec3\u5b66\u4e60\u8d44\u6599\u5e76\u5efa\u7acb\u4e00\u4e2a\u6a21\u578b\uff0c\u6839\u636e\u6a21\u578b\u6765\u8fdb\u884c\u9884\u6d4b\u3002<\/p>\n<p>\u9664\u6b64\u5916\u8fd8\u6709\u7740\u975e\u76d1\u7763\u5b66\u4e60\u8fd9\u79cd\u5e94\u7528\u573a\u666f\u3002\u9700\u8981\u7531\u673a\u5668\u81ea\u5df1\u5bf9\u8bad\u7ec3\u6837\u672c\u8fdb\u884c\u5f52\u7c7b\uff0c\u7136\u540e\u8fdb\u884c\u81ea\u6211\u8bad\u7ec3\uff0c\u90a3\u4e48\u5982\u4f55\u8fdb\u884c\u5f52\u7c7b\uff0c\u5c31\u662f\u975e\u76d1\u7763\u5b66\u4e60\u9996\u5148\u8981\u8003\u8651\u7684\u3002\u5bf9\u4e8e\u5206\u7c7b\uff0c\u8fd9\u91cc\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u6211\u4eec\u4e4b\u524d\u5e94\u7528\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u5e76\u52a0\u4e0a\u5176\u4e2d\u7684\u8ddd\u79bb\u548c\u76f8\u4f3c\u6027\u4e24\u79cd\u6982\u5ff5\uff0c\u4ece\u800c\u8fdb\u884c\u5212\u5206\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u770b\u4e00\u4e2a\u5177\u4f53\u7684\u805a\u7c7b\u7b97\u6cd5\uff0cK-Means\u7b97\u6cd5\u3002\u8fd9\u4e2a\u7b97\u6cd5\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728\u4e00\u4e2a\u4efb\u610f\u591a\u7684\u6570\u636e\u96c6\u4e4b\u4e2d\uff0c\u83b7\u53d6\u5230K\u4e2a\u805a\u96c6\u3002<\/p>\n<p>\u8fd9\u79cd\u7b97\u6cd5\u7684\u6838\u5fc3\u601d\u60f3\u662f \u5c3d\u53ef\u80fd\u6700\u5927\u5316\u7fa4\u7ec4\u5185\u7684\u76f8\u4f3c\u5ea6\uff0c\u540c\u65f6\u6700\u5c0f\u5316\u7fa4\u7ec4\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u3002\u4ece\u800c\u8fdb\u884c\u5212\u5206\u3002<\/p>\n<p>\u5176\u6838\u5fc3\u6d41\u7a0b\u5927\u81f4\u603b\u7ed3\u5982\u4e0b<\/p>\n<ol>\n<li>\u4eceN\u4e2a\u6570\u636e\u5bf9\u8c61\u4e2d\u968f\u673a\u9009\u53d6K\u4e2a\u5bf9\u8c61\u4f5c\u4e3a\u8d28\u5fc3<\/li>\n<li>\u5bf9\u4e8e\u5269\u4f59\u7684\u5bf9\u8c61\uff0c\u6d4b\u91cf\u5176\u548c\u6bcf\u4e2a\u8d28\u5fc3\u7684\u76f8\u4f3c\u5ea6\uff0c\u7136\u540e\u8fdb\u884c\u5f52\u7c7b\u3002<\/li>\n<li>\u4e4b\u540e\u91cd\u65b0\u8ba1\u7b97\u5404\u4e2a\u7fa4\u7ec4\u7684\u8d28\u5fc3\uff0c\u8fd9\u91cc\u7684\u8d28\u5fc3\u7684\u8ba1\u7b97\u662f\u5173\u952e\uff0c\u5982\u679c\u4f7f\u7528\u7279\u5f81\u5411\u91cf\u8868\u793a\u7684\u6570\u636e\u5bf9\u8c61\uff0c\u90a3\u4e48\u5c31\u662f\u83b7\u53d6\u7fa4\u7ec4\u4e2d\u7684\u6210\u5458\u7684\u7279\u5f81\u5411\u91cf\uff0c\u5e76\u4f7f\u7528\u5e73\u5747\u503c\u6765\u4f5c\u4e3a\u8d28\u5fc3\u8868\u793a\u3002<\/li>\n<li>\u7136\u540e\u4e0d\u65ad\u7684\u8fed\u4ee32\uff0c3\u6b65\u9aa4\uff0c\u76f4\u5230\u65b0\u7684\u8d28\u5fc3\u548c\u539f\u672c\u8d28\u5fc3\u76f8\u7b49\u6216\u8005\u76f8\u5dee\u4e4b\u503c\u5c0f\u4e8e\u6307\u5b9a\u9608\u503c\u3002 <img decoding=\"async\" loading=\"lazy\" width=\"1696\" height=\"644\" class=\"wp-image-5479\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168.png\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168.png 1696w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168-300x114.png 300w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168-1024x389.png 1024w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168-768x292.png 768w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-168-1536x583.png 1536w\" sizes=\"(max-width: 1696px) 100vw, 1696px\" \/><\/li>\n<\/ol>\n<p>A \u8868\u793a\u6807\u8bb0\u8d28\u5fc3<\/p>\n<p>B \u8868\u793a\u5f00\u59cb\u8fdb\u884c\u805a\u7c7b<\/p>\n<p>C \u8868\u793a\u8ba1\u7b97\u65b0\u7684\u8d28\u5fc3<\/p>\n<p>\u90a3\u4e48\u6211\u4eec\u4ee5\u4e00\u4e2a\u5b9e\u9645\u7684\u65b0\u95fb\u5206\u7c7b\u6765\u770b\u4e0b\u6574\u4f53\u7684\u6d41\u7a0b<\/p>\n<p>\u9996\u5148\u662f\u5c06\u6240\u6709\u7684\u6587\u6863\u96c6\u5408\u8f6c\u6362\u4e3a\u5411\u91cf\u7684\u65b9\u5f0f<\/p>\n<p>\u7136\u540e\u4f7f\u7528K\u5747\u503c\u7b97\u6cd5\u8fdb\u884c\u805a\u7c7b\uff0c\u786e\u5b9a\u6570\u636e\u5bf9\u8c61\u548c\u5206\u7ec4\u8d28\u5fc3\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u3002\u5176\u4e3b\u8981\u5c31\u5229\u7528\u4e86\u8ddd\u79bb\u548c\u5939\u89d2\u4f59\u5f26\u5ea6\u91cf\u8fdb\u884c\u83b7\u53d6\u7684\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"590\" height=\"198\" class=\"wp-image-5480\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-169.png\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-169.png 590w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-169-300x101.png 300w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/p>\n<p>\u6700\u540e\u9009\u62e9\u548c\u8d28\u5fc3\u76f8\u4f3c\u7684\u51e0\u7bc7\u6587\u7ae0\u4f5c\u4e3a\u4ee3\u8868\uff0c\u5176\u4ed6\u8fdb\u884c\u8fc7\u6ee4\u3002<\/p>\n<p>\u8fd9\u91cc\u8fdb\u884c\u4e0b\u6f14\u793a<\/p>\n<p>\u8fd9\u91cc\u5229\u7528Python\u4e2d\u7684scikit-learn\uff0c\u8fdb\u884c\u6d4b\u8bd5<\/p>\n<p>\u5229\u7528sklearn\u4e2d\u7684CountVectorizer\uff0c\u8fdb\u884c\u96c6\u5408\u4e0a\u7684\u7279\u5f81\u6784\u5efa\u3002\u4e5f\u5c31\u662f\u8bcd\u5178\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1384\" height=\"868\" class=\"wp-image-5481\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-170.png\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-170.png 1384w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-170-300x188.png 300w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-170-1024x642.png 1024w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-170-768x482.png 768w\" sizes=\"(max-width: 1384px) 100vw, 1384px\" \/><\/p>\n<p>\u4ee5\u53ca\u5229\u7528\u8bcd\u5178\u6784\u5efa\u7684tf-idf<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1232\" height=\"566\" class=\"wp-image-5482\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-171.png\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-171.png 1232w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-171-300x138.png 300w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-171-1024x470.png 1024w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-171-768x353.png 768w\" sizes=\"(max-width: 1232px) 100vw, 1232px\" \/><\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u8fdb\u884cK\u5747\u503c\u805a\u7c7b\uff0c\u6bd4\u5982\u8bbe\u7f6eK\u4e3a3\uff0c\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u5982\u4e0b\u8bbe\u7f6e<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1018\" height=\"896\" class=\"wp-image-5483\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-172.png\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-172.png 1018w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-172-300x264.png 300w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/01\/word-image-172-768x676.png 768w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p>\u4ece\u800c\u83b7\u53d6\u5230\u4e09\u4e2a\u7fa4\u7ec4\u4e2d\u5305\u542b\u7684\u53e5\u5b50\u3002<\/p>\n<p>\u90a3\u4e48\u603b\u7ed3\u4e00\u4e0b\uff0c\u6211\u4eec\u67e5\u770b\u4e86\u805a\u7c7b\u7b97\u6cd5\u4e2d\u7684K-Means\u7b97\u6cd5\uff0c\u5176\u5c06\u5411\u91cf\u7a7a\u95f4\u7684\u5b9e\u9645\u4f7f\u7528\u3002<\/p>\n<p>\u901a\u8fc7\u5c06\u6837\u672c\u8f6c\u6362\u4e3a\u5411\u91cf\uff0c\u7136\u540e\u4f7f\u7528\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u8ddd\u79bb\u6216\u8005\u5939\u89d2\u4f59\u5f26\uff0c\u4ece\u800c\u83b7\u53d6\u5230\u4e0d\u540c\u7fa4\u7ec4\u4e2d\u7684\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u7840\u6570\u5b66\u8bfe25 \u6587\u672c\u805a\u7c7b\u7b97\u6cd5  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"_links":{"self":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5478"}],"collection":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5478"}],"version-history":[{"count":1,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5478\/revisions"}],"predecessor-version":[{"id":5484,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5478\/revisions\/5484"}],"wp:attachment":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5478"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}