{"id":189378,"date":"2024-05-09T17:34:25","date_gmt":"2024-05-09T09:34:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/189378.html"},"modified":"2024-05-09T17:34:30","modified_gmt":"2024-05-09T09:34:30","slug":"%e5%b7%a5%e4%b8%9a%e7%95%8c%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e7%ae%97%e6%b3%95%e5%b9%b3%e5%8f%b0%e6%9c%89%e5%93%aa%e4%ba%9b%e9%80%9a%e7%94%a8%e7%9a%84%e7%89%b9%e5%be%81%e5%b7%a5%e7%a8%8b%e6%96%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/189378.html","title":{"rendered":"\u5de5\u4e1a\u754c\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u5e73\u53f0\u6709\u54ea\u4e9b\u901a\u7528\u7684\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26095422\/9a4aab00-a219-4381-be73-1c98cd61ceb4.webp\" alt=\"\u5de5\u4e1a\u754c\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u5e73\u53f0\u6709\u54ea\u4e9b\u901a\u7528\u7684\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\" \/><\/p>\n<p><p>\u5de5\u4e1a\u754c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b97\u6cd5\u5e73\u53f0\u901a\u5e38\u91c7\u7528\u7684\u901a\u7528\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\u5305\u62ec\uff1a<strong>\u7f3a\u5931\u503c\u5904\u7406\u3001\u7f16\u7801\u548c\u53d8\u91cf\u8f6c\u6362\u3001\u5f52\u4e00\u5316\u6216\u6807\u51c6\u5316\u3001\u7279\u5f81\u9009\u62e9\u548c\u964d\u7ef4\u3001\u4ea4\u4e92\u7279\u5f81\u521b\u5efa\u3001\u65f6\u95f4\u5e8f\u5217\u7279\u5f81\u5de5\u7a0b<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u7279\u5f81\u9009\u62e9\u548c\u964d\u7ef4<\/strong>\u662f\u81f3\u5173\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6a21\u578b\u7684\u6027\u80fd\u3002\u7279\u522b\u662f\u5728\u9ad8\u7ef4\u6570\u636e\u60c5\u51b5\u4e0b\uff0c\u5408\u9002\u7684\u7279\u5f81\u9009\u62e9\u80fd\u591f\u53bb\u9664\u65e0\u5173\u7279\u5f81\u3001\u51cf\u5c11\u7ef4\u6570\u3001\u964d\u4f4e\u5b66\u4e60\u96be\u5ea6\u548c\u7b97\u6cd5\u590d\u6742\u5ea6\uff0c\u8fdb\u800c\u63d0\u9ad8\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u7f3a\u5931\u503c\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u7f3a\u5931\u503c\u5904\u7406\u662f\u7279\u5f81\u5de5\u7a0b\u4e2d\u5fc5\u4e0d\u53ef\u5c11\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u73b0\u5b9e\u4e16\u754c\u4e2d\u7684\u6570\u636e\u5e38\u5e38\u4f1a\u4e0d\u5b8c\u6574\u3002\u5bf9\u4e8e\u7f3a\u5931\u503c\uff0c\u53ef\u4ee5\u91c7\u53d6\u4e0d\u540c\u7684\u7b56\u7565\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5220\u9664<\/strong>\uff1a\u82e5\u6570\u636e\u4e22\u5931\u4e0d\u591a\uff0c\u53ef\u4ee5\u8003\u8651\u5220\u9664\u5e26\u6709\u7f3a\u5931\u503c\u7684\u884c\u6216\u5217\uff0c\u4f46\u8fd9\u79cd\u65b9\u6cd5\u5728\u4e22\u5931\u4fe1\u606f\u8f83\u591a\u7684\u60c5\u51b5\u4e0b\u5e76\u4e0d\u9002\u7528\u3002<\/li>\n<li><strong>\u586b\u5145<\/strong>\uff1a\u53ef\u4ee5\u7528\u7edf\u8ba1\u91cf\uff08\u5982\u5747\u503c\u3001\u4e2d\u4f4d\u6570\u3001\u4f17\u6570\uff09\u6765\u586b\u5145\u7f3a\u5931\u503c\uff0c\u6216\u91c7\u7528\u66f4\u9ad8\u7ea7\u7684\u7b97\u6cd5\uff08\u5982KNN\u3001\u56de\u5f52\u3001\u63d2\u503c\u65b9\u6cd5\uff09\u9884\u6d4b\u7f3a\u5931\u503c\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u7f16\u7801\u548c\u53d8\u91cf\u8f6c\u6362<\/h3>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u9700\u8981\u4e0d\u540c\u7684\u5904\u7406\u65b9\u6cd5\u3002\u800c\u7f16\u7801\u548c\u53d8\u91cf\u8f6c\u6362\u662f\u5bf9\u7279\u5f81\u8fdb\u884c\u9002\u5f53\u5904\u7406\u7684\u5173\u952e\u73af\u8282\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u72ec\u70ed\u7f16\u7801\uff08One-Hot Encoding\uff09<\/strong>\uff1a\u5c06\u5206\u7c7b\u53d8\u91cf\u8f6c\u6362\u4e3a\u4e00\u7cfb\u5217\u76840\u548c1\uff0c\u9002\u7528\u4e8e\u6ca1\u6709\u987a\u5e8f\u6027\u7684\u5206\u7c7b\u7279\u5f81\u3002<\/li>\n<li><strong>\u6807\u7b7e\u7f16\u7801\uff08Label Encoding\uff09<\/strong>\uff1a\u6bcf\u4e00\u4e2a\u5206\u7c7b\u8d4b\u4e88\u4e00\u4e2a\u552f\u4e00\u7684\u6574\u6570\uff0c\u9002\u7528\u4e8e\u6709\u987a\u5e8f\u5173\u7cfb\u7684\u6570\u636e\u3002<\/li>\n<li><strong>\u53d8\u91cf\u53d8\u6362<\/strong>\uff1a\u5982\u5bf9\u6570\u53d8\u6362\u3001\u5e42\u6b21\u53d8\u6362\u3001\u7bb1\u578b\u53d8\u6362\u7b49\uff0c\u8fd9\u4e9b\u53d8\u6362\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u504f\u6001\u5206\u5e03\u548c\u975e\u7ebf\u6027\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001 \u5f52\u4e00\u5316\u6216\u6807\u51c6\u5316<\/h3>\n<\/p>\n<p><p>\u5f52\u4e00\u5316\u548c\u6807\u51c6\u5316\u662f\u5c06\u7279\u5f81\u6570\u636e\u89c4\u6a21\u5316\u5230\u4e00\u4e2a\u6807\u51c6\u8303\u56f4\u5185\uff0c\u4ee5\u907f\u514d\u6570\u636e\u89c4\u6a21\u7684\u5dee\u5f02\u5bf9\u6a21\u578b\u6027\u80fd\u7684\u5f71\u54cd\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5f52\u4e00\u5316\uff08Normalization\uff09<\/strong>\uff1a\u5e38\u7528\u7684\u65b9\u6cd5\u6709\u6700\u5c0f-\u6700\u5927\u89c4\u8303\u5316\uff0c\u5c06\u6570\u503c\u578b\u7279\u5f81\u538b\u7f29\u52300-1\u4e4b\u95f4\u3002<\/li>\n<li><strong>\u6807\u51c6\u5316\uff08Standardization\uff09<\/strong>\uff1a\u901a\u8fc7\u51cf\u53bb\u5747\u503c\u5e76\u9664\u4ee5\u6807\u51c6\u5dee\u6765\u6807\u51c6\u5316\u7279\u5f81\uff0c\u4f7f\u7279\u5f81\u670d\u4ece\u6807\u51c6\u6b63\u6001\u5206\u5e03\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001 \u7279\u5f81\u9009\u62e9\u548c\u964d\u7ef4<\/h3>\n<\/p>\n<p><p>\u6709\u6548\u7684\u7279\u5f81\u9009\u62e9\u548c\u964d\u7ef4\u6280\u672f\u80fd\u591f\u63d0\u5347\u6a21\u578b\u7684\u6548\u7387\u548c\u6027\u80fd\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7279\u5f81\u9009\u62e9<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528\u7edf\u8ba1\u6d4b\u8bd5\uff08\u5982\u5361\u65b9\u6d4b\u8bd5\uff09\u3001\u5305\u88c5\u65b9\u6cd5\uff08\u5982\u9012\u5f52\u7279\u5f81\u6d88\u9664\uff09\u3001\u5d4c\u5165\u6cd5\uff08\u5982\u6b63\u5219\u5316\u65b9\u6cd5\u548c\u57fa\u4e8e\u6a21\u578b\u7684\u9009\u62e9\uff09\u6765\u8bc6\u522b\u5e76\u9009\u62e9\u6700\u91cd\u8981\u7684\u7279\u5f81\u3002<\/li>\n<li><strong>\u964d\u7ef4<\/strong>\uff1a\u4e3b\u6210\u5206\u5206\u6790\uff08PCA\uff09\u3001\u7ebf\u6027\u5224\u522b\u5206\u6790\uff08LDA\uff09\u548ct-\u5206\u5e03\u968f\u673a\u8fd1\u90bb\u5d4c\u5165\uff08t-SNE\uff09\u7b49\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u51cf\u5c11\u7279\u5f81\u7a7a\u95f4\u7684\u7ef4\u5ea6\uff0c\u540c\u65f6\u5c3d\u53ef\u80fd\u4fdd\u7559\u539f\u6709\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001 \u4ea4\u4e92\u7279\u5f81\u521b\u5efa<\/h3>\n<\/p>\n<p><p>\u4ea4\u4e92\u7279\u5f81\u80fd\u591f\u63ed\u793a\u7279\u5f81\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u7684\u76f8\u4e92\u5f71\u54cd\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7279\u5f81\u7ec4\u5408<\/strong>\uff1a\u901a\u8fc7\u7ec4\u5408\u73b0\u6709\u7279\u5f81\u6765\u521b\u5efa\u65b0\u7684\u7279\u5f81\uff0c\u8fd9\u4e9b\u4ea4\u4e92\u7279\u5f81\u6709\u65f6\u53ef\u4ee5\u63d0\u9ad8\u6a21\u578b\u7684\u9884\u6d4b\u80fd\u529b\u3002<\/li>\n<li><strong>\u591a\u9879\u5f0f\u7279\u5f81<\/strong>\uff1a\u591a\u9879\u5f0f\u548c\u4ea4\u53c9\u9879\u7684\u521b\u5efa\u53ef\u4ee5\u63ed\u793a\u7279\u5f81\u4e4b\u95f4\u7684\u590d\u6742\u5173\u7cfb\uff0c\u589e\u52a0\u6a21\u578b\u7684\u6355\u6349\u6570\u636e\u7ed3\u6784\u7684\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p><h3>\u516d\u3001 \u65f6\u95f4\u5e8f\u5217\u7279\u5f81\u5de5\u7a0b<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u91c7\u7528\u591a\u79cd\u7279\u5b9a\u7684\u7279\u5f81\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u65f6\u95f4\u6bb5\u843d\u7279\u5f81<\/strong>\uff1a\u6bd4\u5982\u5e74\u3001\u6708\u3001\u65e5\u3001\u5c0f\u65f6\u7b49\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u6355\u6349\u5b63\u8282\u6027\u548c\u8d8b\u52bf\u3002<\/li>\n<li><strong>\u6eda\u52a8\u7edf\u8ba1\u7279\u5f81<\/strong>\uff1a\u5982\u6eda\u52a8\u5e73\u5747\u3001\u6eda\u52a8\u65b9\u5dee\u7b49\uff0c\u5b83\u4eec\u80fd\u591f\u6458\u53d6\u65f6\u95f4\u5e8f\u5217\u7684\u52a8\u6001\u53d8\u5316\u7279\u5f81\u3002<\/li>\n<\/ul>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u9009\u62e9\u9002\u5408\u7684\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\uff1f<\/strong><br \/>\n\u7279\u5f81\u5de5\u7a0b\u5728\u673a\u5668\u5b66\u4e60\u4e2d\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5f71\u54cd\u6a21\u578b\u7684\u6027\u80fd\u3002\u9009\u62e9\u9002\u5408\u7684\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\u9700\u8981\u8003\u8651\u591a\u4e2a\u56e0\u7d20\uff0c\u5982\u6570\u636e\u7c7b\u578b\u3001\u7279\u5f81\u7684\u76f8\u5173\u6027\u3001\u566a\u58f0\u7684\u5b58\u5728\u7b49\u3002\u5728\u9009\u62e9\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\u65f6\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u7edf\u8ba1\u65b9\u6cd5\uff08\u4f8b\u5982\u65b9\u5dee\u5206\u6790\u3001\u4e3b\u6210\u5206\u5206\u6790\u7b49\uff09\u6765\u9009\u62e9\u6700\u76f8\u5173\u7684\u7279\u5f81\uff0c\u6216\u8005\u4f7f\u7528\u9886\u57df\u77e5\u8bc6\u6765\u8fdb\u884c\u7279\u5f81\u9009\u62e9\u3002<\/p>\n<p><strong>2. \u5e38\u89c1\u7684\u7279\u5f81\u9009\u62e9\u65b9\u6cd5\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\n\u5e38\u89c1\u7684\u7279\u5f81\u9009\u62e9\u65b9\u6cd5\u5305\u62ec\uff1a\u8fc7\u6ee4\u5f0f\u65b9\u6cd5\u3001\u5305\u88f9\u5f0f\u65b9\u6cd5\u548c\u5d4c\u5165\u5f0f\u65b9\u6cd5\u3002\u8fc7\u6ee4\u5f0f\u65b9\u6cd5\u662f\u901a\u8fc7\u8ba1\u7b97\u7279\u5f81\u4e0e\u76ee\u6807\u53d8\u91cf\u4e4b\u95f4\u7684\u76f8\u5173\u6027\u6765\u9009\u62e9\u7279\u5f81\uff1b\u5305\u88f9\u5f0f\u65b9\u6cd5\u662f\u901a\u8fc7\u5728\u7279\u5f81\u5b50\u96c6\u4e0a\u8fd0\u884c\u6a21\u578b\u6765\u9009\u62e9\u7279\u5f81\uff1b\u5d4c\u5165\u5f0f\u65b9\u6cd5\u662f\u5728\u6a21\u578b\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u9009\u62e9\u7279\u5f81\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u6a21\u578b\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5904\u7406\u7f3a\u5931\u503c\u548c\u5f02\u5e38\u503c\u7684\u7279\u5f81\uff1f<\/strong><br \/>\n\u5728\u7279\u5f81\u5de5\u7a0b\u4e2d\uff0c\u7f3a\u5931\u503c\u548c\u5f02\u5e38\u503c\u662f\u5e38\u89c1\u7684\u95ee\u9898\u3002\u5904\u7406\u7f3a\u5931\u503c\u7684\u65b9\u6cd5\u5305\u62ec\u5220\u9664\u5305\u542b\u7f3a\u5931\u503c\u7684\u6837\u672c\u3001\u7528\u5e73\u5747\u503c\u6216\u4e2d\u4f4d\u6570\u586b\u5145\u7f3a\u5931\u503c\u3001\u4f7f\u7528\u56de\u5f52\u6a21\u578b\u8fdb\u884c\u9884\u6d4b\u7b49\u3002\u5bf9\u4e8e\u5f02\u5e38\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u7edf\u8ba1\u65b9\u6cd5\uff08\u4f8b\u5982\u7bb1\u7ebf\u56fe\uff09\u6765\u8bc6\u522b\u5e76\u5220\u9664\u5f02\u5e38\u503c\uff0c\u6216\u8005\u4f7f\u7528\u63d2\u503c\u65b9\u6cd5\u6765\u586b\u5145\u5f02\u5e38\u503c\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u8003\u8651\u5c06\u5f02\u5e38\u503c\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u7684\u7279\u5f81\uff0c\u4ee5\u6355\u6349\u5f02\u5e38\u6837\u672c\u7684\u7279\u70b9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5de5\u4e1a\u754c\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u5e73\u53f0\u901a\u5e38\u91c7\u7528\u7684\u901a\u7528\u7279\u5f81\u5de5\u7a0b\u65b9\u6cd5\u5305\u62ec\uff1a\u7f3a\u5931\u503c\u5904\u7406\u3001\u7f16\u7801\u548c\u53d8\u91cf\u8f6c\u6362\u3001\u5f52\u4e00\u5316\u6216\u6807\u51c6\u5316\u3001\u7279\u5f81\u9009\u62e9\u548c\u964d [&hellip;]","protected":false},"author":3,"featured_media":189383,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/189378"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=189378"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/189378\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/189383"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=189378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=189378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=189378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}