{"id":943347,"date":"2024-12-26T22:37:29","date_gmt":"2024-12-26T14:37:29","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/943347.html"},"modified":"2024-12-26T22:37:31","modified_gmt":"2024-12-26T14:37:31","slug":"python%e5%a6%82%e4%bd%95%e4%bd%9c%e9%a2%84%e6%b5%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/943347.html","title":{"rendered":"python\u5982\u4f55\u4f5c\u9884\u6d4b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080655\/58278660-3518-4442-895b-b72cc737ce9d.webp\" alt=\"python\u5982\u4f55\u4f5c\u9884\u6d4b\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8fdb\u884c\u9884\u6d4b\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u6570\u636e\u9884\u5904\u7406\u3001\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u3001\u8bad\u7ec3\u6a21\u578b\u3001\u8fdb\u884c\u9884\u6d4b\u3001\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\u548c\u4f18\u5316\u6a21\u578b\u3002\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u4efb\u52a1\u9700\u8981\u4e0d\u540c\u7c7b\u578b\u7684\u9884\u6d4b\u6a21\u578b\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u65f6\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3\u95ee\u9898\u7684\u6027\u8d28\uff1a\u662f\u56de\u5f52\u95ee\u9898\u8fd8\u662f\u5206\u7c7b\u95ee\u9898\u3002\u5bf9\u4e8e\u56de\u5f52\u95ee\u9898\uff0c\u5e38\u7528\u7684\u6a21\u578b\u5305\u62ec\u7ebf\u6027\u56de\u5f52\u3001\u51b3\u7b56\u6811\u56de\u5f52\u3001\u968f\u673a\u68ee\u6797\u56de\u5f52\u7b49\u3002\u5bf9\u4e8e\u5206\u7c7b\u95ee\u9898\uff0c\u5e38\u7528\u7684\u6a21\u578b\u6709\u903b\u8f91\u56de\u5f52\u3001\u652f\u6301\u5411\u91cf\u673a\u3001\u968f\u673a\u68ee\u6797\u5206\u7c7b\u7b49\u3002\u9009\u62e9\u6a21\u578b\u65f6\uff0c\u9700\u8981\u6839\u636e\u6570\u636e\u7684\u7279\u6027\u3001\u6837\u672c\u91cf\u3001\u6a21\u578b\u590d\u6742\u5ea6\u548c\u8ba1\u7b97\u8d44\u6e90\u7b49\u56e0\u7d20\u7efc\u5408\u8003\u8651\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e00\u3001\u6570\u636e\u9884\u5904\u7406<\/h2>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u9884\u6d4b\u4e4b\u524d\uff0c\u6570\u636e\u9884\u5904\u7406\u662f\u4e00\u4e2a\u81f3\u5173\u91cd\u8981\u7684\u6b65\u9aa4\u3002\u6570\u636e\u9884\u5904\u7406\u7684\u76ee\u7684\u662f\u6e05\u6d17\u548c\u6574\u7406\u6570\u636e\uff0c\u4f7f\u5176\u9002\u5408\u8fdb\u884c\u5efa\u6a21\u548c\u9884\u6d4b\u3002<\/p>\n<\/p>\n<p><h3>1. \u6570\u636e\u6e05\u6d17<\/h3>\n<\/p>\n<p><p>\u6570\u636e\u6e05\u6d17\u5305\u62ec\u5904\u7406\u7f3a\u5931\u503c\u3001\u5f02\u5e38\u503c\u548c\u91cd\u590d\u6570\u636e\u3002\u7f3a\u5931\u503c\u53ef\u4ee5\u901a\u8fc7\u5220\u9664\u3001\u586b\u5145\u6216\u63d2\u503c\u7684\u65b9\u5f0f\u5904\u7406\u3002\u5f02\u5e38\u503c\u901a\u5e38\u9700\u8981\u6839\u636e\u4e1a\u52a1\u77e5\u8bc6\u6216\u7edf\u8ba1\u65b9\u6cd5\u8bc6\u522b\uff0c\u5e76\u9002\u5f53\u5730\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>2. \u6570\u636e\u6807\u51c6\u5316<\/h3>\n<\/p>\n<p><p>\u6807\u51c6\u5316\u662f\u5c06\u6570\u636e\u7f29\u653e\u5230\u4e00\u4e2a\u7279\u5b9a\u7684\u8303\u56f4\u5185\uff0c\u4ee5\u6d88\u9664\u4e0d\u540c\u7279\u5f81\u4e4b\u95f4\u7684\u91cf\u7eb2\u5dee\u5f02\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u6709Min-Max\u6807\u51c6\u5316\u548cZ-score\u6807\u51c6\u5316\u3002<\/p>\n<\/p>\n<p><h3>3. \u7279\u5f81\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u7279\u5f81\u9009\u62e9\u662f\u4ece\u539f\u59cb\u6570\u636e\u4e2d\u6311\u9009\u51fa\u5bf9\u9884\u6d4b\u6700\u6709\u5e2e\u52a9\u7684\u7279\u5f81\uff0c\u4ee5\u51cf\u5c11\u6a21\u578b\u7684\u590d\u6742\u5ea6\u548c\u63d0\u9ad8\u6a21\u578b\u7684\u6027\u80fd\u3002\u53ef\u4ee5\u901a\u8fc7\u76f8\u5173\u6027\u5206\u6790\u3001PCA\uff08\u4e3b\u6210\u5206\u5206\u6790\uff09\u7b49\u65b9\u6cd5\u8fdb\u884c\u7279\u5f81\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b<\/h2>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u662f\u9884\u6d4b\u4efb\u52a1\u4e2d\u6700\u4e3a\u5173\u952e\u7684\u6b65\u9aa4\u4e4b\u4e00\u3002\u4e0d\u540c\u7684\u9884\u6d4b\u4efb\u52a1\u9700\u8981\u9009\u62e9\u4e0d\u540c\u7684\u6a21\u578b\u3002<\/p>\n<\/p>\n<p><h3>1. \u56de\u5f52\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u56de\u5f52\u95ee\u9898\uff0c\u5e38\u7528\u7684\u6a21\u578b\u6709\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7ebf\u6027\u56de\u5f52<\/strong>\uff1a\u9002\u7528\u4e8e\u7279\u5f81\u548c\u76ee\u6807\u53d8\u91cf\u4e4b\u95f4\u7ebf\u6027\u5173\u7cfb\u8f83\u5f3a\u7684\u6570\u636e\u3002<\/li>\n<li><strong>\u51b3\u7b56\u6811\u56de\u5f52<\/strong>\uff1a\u9002\u7528\u4e8e\u975e\u7ebf\u6027\u5173\u7cfb\u7684\u6570\u636e\uff0c\u5bb9\u6613\u89e3\u91ca\u3002<\/li>\n<li><strong>\u968f\u673a\u68ee\u6797\u56de\u5f52<\/strong>\uff1a\u57fa\u4e8e\u591a\u4e2a\u51b3\u7b56\u6811\u7684\u96c6\u6210\u6a21\u578b\uff0c\u5177\u6709\u8f83\u9ad8\u7684\u7cbe\u5ea6\u548c\u9c81\u68d2\u6027\u3002<\/li>\n<\/ul>\n<p><h3>2. \u5206\u7c7b\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5206\u7c7b\u95ee\u9898\uff0c\u5e38\u7528\u7684\u6a21\u578b\u6709\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u903b\u8f91\u56de\u5f52<\/strong>\uff1a\u9002\u7528\u4e8e\u7ebf\u6027\u53ef\u5206\u7684\u4e8c\u5206\u7c7b\u95ee\u9898\u3002<\/li>\n<li><strong>\u652f\u6301\u5411\u91cf\u673a\uff08SVM\uff09<\/strong>\uff1a\u9002\u7528\u4e8e\u590d\u6742\u7684\u5206\u7c7b\u95ee\u9898\uff0c\u5c24\u5176\u662f\u9ad8\u7ef4\u6570\u636e\u3002<\/li>\n<li><strong>\u968f\u673a\u68ee\u6797\u5206\u7c7b<\/strong>\uff1a\u5728\u591a\u5206\u7c7b\u95ee\u9898\u4e2d\u8868\u73b0\u826f\u597d\uff0c\u6297\u8fc7\u62df\u5408\u80fd\u529b\u5f3a\u3002<\/li>\n<\/ul>\n<p><h2>\u4e09\u3001\u8bad\u7ec3\u6a21\u578b<\/h2>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u597d\u6a21\u578b\u540e\uff0c\u4e0b\u4e00\u6b65\u662f\u8bad\u7ec3\u6a21\u578b\u3002\u8bad\u7ec3\u6a21\u578b\u7684\u76ee\u7684\u662f\u627e\u5230\u6a21\u578b\u53c2\u6570\uff0c\u4f7f\u5f97\u6a21\u578b\u5728\u8bad\u7ec3\u6570\u636e\u4e0a\u7684\u8868\u73b0\u8fbe\u5230\u6700\u4f18\u3002<\/p>\n<\/p>\n<p><h3>1. \u5212\u5206\u6570\u636e\u96c6<\/h3>\n<\/p>\n<p><p>\u901a\u5e38\u5c06\u6570\u636e\u96c6\u5212\u5206\u4e3a\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\uff0c\u4e00\u822c\u7684\u5212\u5206\u6bd4\u4f8b\u662f70%\u7528\u4e8e\u8bad\u7ec3\uff0c30%\u7528\u4e8e\u6d4b\u8bd5\u3002\u8fd9\u662f\u4e3a\u4e86\u4fdd\u8bc1\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h3>2. \u6a21\u578b\u8bad\u7ec3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u8bad\u7ec3\u96c6\u8bad\u7ec3\u6a21\u578b\uff0c\u8c03\u6574\u6a21\u578b\u53c2\u6570\u4ee5\u6700\u5c0f\u5316\u9884\u6d4b\u8bef\u5dee\u3002\u5bf9\u4e8e\u4e00\u4e9b\u590d\u6742\u7684\u6a21\u578b\uff0c\u5982\u795e\u7ecf\u7f51\u7edc\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u66f4\u9ad8\u7ea7\u7684\u4f18\u5316\u7b97\u6cd5\uff0c\u5982\u68af\u5ea6\u4e0b\u964d\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u8fdb\u884c\u9884\u6d4b<\/h2>\n<\/p>\n<p><p>\u4e00\u65e6\u6a21\u578b\u8bad\u7ec3\u5b8c\u6210\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u6a21\u578b\u5bf9\u65b0\u6570\u636e\u8fdb\u884c\u9884\u6d4b\u3002<\/p>\n<\/p>\n<p><h3>1. \u9884\u6d4b\u65b0\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5c06\u65b0\u6570\u636e\u8f93\u5165\u6a21\u578b\uff0c\u5f97\u5230\u9884\u6d4b\u7ed3\u679c\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u65b0\u6570\u636e\u5e94\u7ecf\u8fc7\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u540c\u7684\u9884\u5904\u7406\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>2. \u89e3\u8bfb\u9884\u6d4b\u7ed3\u679c<\/h3>\n<\/p>\n<p><p>\u6839\u636e\u9884\u6d4b\u7ed3\u679c\uff0c\u7ed3\u5408\u4e1a\u52a1\u573a\u666f\u8fdb\u884c\u89e3\u8bfb\uff0c\u5224\u65ad\u9884\u6d4b\u7684\u5408\u7406\u6027\u548c\u53ef\u884c\u6027\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u8bc4\u4f30\u6a21\u578b\u6027\u80fd<\/h2>\n<\/p>\n<p><p>\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\u662f\u9884\u6d4b\u8fc7\u7a0b\u4e2d\u7684\u91cd\u8981\u73af\u8282\u3002\u5e38\u7528\u7684\u8bc4\u4f30\u6307\u6807\u6709\uff1a<\/p>\n<\/p>\n<p><h3>1. \u56de\u5f52\u95ee\u9898<\/h3>\n<\/p>\n<ul>\n<li><strong>\u5747\u65b9\u8bef\u5dee\uff08MSE\uff09<\/strong>\uff1a\u8bc4\u4f30\u9884\u6d4b\u503c\u4e0e\u771f\u5b9e\u503c\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/li>\n<li><strong>\u51b3\u5b9a\u7cfb\u6570\uff08R\u00b2\uff09<\/strong>\uff1a\u8861\u91cf\u6a21\u578b\u5bf9\u6570\u636e\u53d8\u5f02\u7684\u89e3\u91ca\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p><h3>2. \u5206\u7c7b\u95ee\u9898<\/h3>\n<\/p>\n<ul>\n<li><strong>\u51c6\u786e\u7387<\/strong>\uff1a\u6b63\u786e\u9884\u6d4b\u7684\u6837\u672c\u5360\u603b\u6837\u672c\u7684\u6bd4\u4f8b\u3002<\/li>\n<li><strong>\u7cbe\u786e\u7387\u548c\u53ec\u56de\u7387<\/strong>\uff1a\u7528\u4e8e\u8bc4\u4f30\u6a21\u578b\u5728\u4e0d\u540c\u7c7b\u522b\u4e0a\u7684\u9884\u6d4b\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p><h2>\u516d\u3001\u4f18\u5316\u6a21\u578b<\/h2>\n<\/p>\n<p><p>\u6a21\u578b\u4f18\u5316\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\uff0c\u4ee5\u63d0\u9ad8\u6a21\u578b\u7684\u9884\u6d4b\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3>1. \u8d85\u53c2\u6570\u8c03\u4f18<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574\u6a21\u578b\u7684\u8d85\u53c2\u6570\uff08\u5982\u5b66\u4e60\u7387\u3001\u6811\u7684\u6df1\u5ea6\u7b49\uff09\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6a21\u578b\u7684\u6027\u80fd\u3002\u5e38\u7528\u7684\u8c03\u4f18\u65b9\u6cd5\u6709\u7f51\u683c\u641c\u7d22\u548c\u968f\u673a\u641c\u7d22\u3002<\/p>\n<\/p>\n<p><h3>2. \u96c6\u6210\u5b66\u4e60<\/h3>\n<\/p>\n<p><p>\u96c6\u6210\u5b66\u4e60\u901a\u8fc7\u7ed3\u5408\u591a\u4e2a\u6a21\u578b\u7684\u9884\u6d4b\u7ed3\u679c\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6574\u4f53\u7684\u9884\u6d4b\u6027\u80fd\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u6709Bagging\u3001Boosting\u7b49\u3002<\/p>\n<\/p>\n<p><h3>3. \u7279\u5f81\u5de5\u7a0b<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u751f\u6210\u65b0\u7684\u7279\u5f81\u6216\u7ec4\u5408\u5df2\u6709\u7684\u7279\u5f81\uff0c\u53ef\u4ee5\u6539\u5584\u6a21\u578b\u7684\u8f93\u5165\u6570\u636e\u8d28\u91cf\uff0c\u8fdb\u800c\u63d0\u9ad8\u9884\u6d4b\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u5728\u6570\u636e\u9884\u6d4b\u4e2d\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u3002\u4ece\u6570\u636e\u9884\u5904\u7406\u5230\u6a21\u578b\u9009\u62e9\uff0c\u518d\u5230\u8bad\u7ec3\u548c\u8bc4\u4f30\uff0cPython\u751f\u6001\u7cfb\u7edf\u4e2d\u7684\u5e93\u5982Pandas\u3001Scikit-learn\u3001TensorFlow\u7b49\uff0c\u4e3a\u5b9e\u73b0\u9ad8\u6548\u3001\u51c6\u786e\u7684\u9884\u6d4b\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u57fa\u7840\u3002\u901a\u8fc7\u4e0d\u65ad\u5730\u8bd5\u9a8c\u548c\u4f18\u5316\uff0c\u53ef\u4ee5\u5728\u5b9e\u8df5\u4e2d\u627e\u5230\u6700\u9002\u5408\u7279\u5b9a\u95ee\u9898\u7684\u9884\u6d4b\u6a21\u578b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. \u5982\u4f55\u9009\u62e9\u5408\u9002\u7684<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u6a21\u578b\u6765\u8fdb\u884cPython\u4e2d\u7684\u9884\u6d4b\uff1f<\/strong><br \/>\u9009\u62e9\u5408\u9002\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u53d6\u51b3\u4e8e\u6570\u636e\u7684\u7279\u6027\u548c\u9884\u6d4b\u4efb\u52a1\u7684\u7c7b\u578b\u3002\u5e38\u89c1\u7684\u6a21\u578b\u5305\u62ec\u7ebf\u6027\u56de\u5f52\u3001\u51b3\u7b56\u6811\u3001\u968f\u673a\u68ee\u6797\u548c\u652f\u6301\u5411\u91cf\u673a\u7b49\u3002\u5bf9\u4e8e\u56de\u5f52\u95ee\u9898\uff0c\u7ebf\u6027\u56de\u5f52\u548c\u968f\u673a\u68ee\u6797\u901a\u5e38\u662f\u4e0d\u9519\u7684\u9009\u62e9\uff1b\u800c\u5bf9\u4e8e\u5206\u7c7b\u95ee\u9898\uff0c\u903b\u8f91\u56de\u5f52\u548c\u652f\u6301\u5411\u91cf\u673a\u53ef\u80fd\u66f4\u4e3a\u6709\u6548\u3002\u5206\u6790\u6570\u636e\u7684\u5206\u5e03\u548c\u7279\u5f81\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u505a\u51fa\u66f4\u660e\u667a\u7684\u9009\u62e9\u3002<\/p>\n<p><strong>2. \u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7f3a\u5931\u503c\u4ee5\u63d0\u9ad8\u9884\u6d4b\u7cbe\u5ea6\uff1f<\/strong><br \/>\u7f3a\u5931\u503c\u5904\u7406\u662f\u6570\u636e\u9884\u5904\u7406\u4e2d\u7684\u91cd\u8981\u6b65\u9aa4\u3002\u53ef\u4ee5\u91c7\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u7f3a\u5931\u503c\uff0c\u4f8b\u5982\u5220\u9664\u542b\u6709\u7f3a\u5931\u503c\u7684\u884c\u3001\u7528\u5747\u503c\u6216\u4e2d\u4f4d\u6570\u586b\u5145\u7f3a\u5931\u503c\uff0c\u6216\u4f7f\u7528\u63d2\u503c\u6cd5\u8fdb\u884c<a href=\"https:\/\/docs.pingcode.com\/agile\/project-management\/estimation\" target=\"_blank\">\u4f30\u7b97<\/a>\u3002\u4f7f\u7528Pandas\u5e93\u4e2d\u7684<code>fillna()<\/code>\u548c<code>dropna()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u8fd9\u4e9b\u64cd\u4f5c\u3002\u786e\u4fdd\u5728\u5904\u7406\u7f3a\u5931\u503c\u540e\uff0c\u6570\u636e\u7684\u6574\u4f53\u5206\u5e03\u548c\u7279\u5f81\u4ecd\u7136\u4fdd\u6301\u5408\u7406\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u6a21\u578b\u7684\u9884\u6d4b\u7cbe\u5ea6\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u8bc4\u4f30Python\u9884\u6d4b\u6a21\u578b\u7684\u6027\u80fd\uff1f<\/strong><br \/>\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\u662f\u786e\u4fdd\u9884\u6d4b\u7ed3\u679c\u53ef\u9760\u7684\u91cd\u8981\u73af\u8282\u3002\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u6307\u6807\u6765\u8bc4\u4f30\u6a21\u578b\uff0c\u5305\u62ec\u5747\u65b9\u8bef\u5dee\uff08MSE\uff09\u3001\u5747\u65b9\u6839\u8bef\u5dee\uff08RMSE\uff09\u4ee5\u53ca\u51c6\u786e\u7387\u548c\u53ec\u56de\u7387\u7b49\u5206\u7c7b\u6307\u6807\u3002Python\u7684Scikit-learn\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u8bc4\u4f30\u51fd\u6570\uff0c\u5982<code>mean_squared_error()<\/code>\u548c<code>accuracy_score()<\/code>\u3002\u901a\u8fc7\u4ea4\u53c9\u9a8c\u8bc1\u548c\u6df7\u6dc6\u77e9\u9635\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u5168\u9762\u5730\u4e86\u89e3\u6a21\u578b\u7684\u8868\u73b0\uff0c\u5e76\u6839\u636e\u8bc4\u4f30\u7ed3\u679c\u8fdb\u884c\u8c03\u4f18\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8fdb\u884c\u9884\u6d4b\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u6570\u636e\u9884\u5904\u7406\u3001\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u3001\u8bad\u7ec3\u6a21\u578b\u3001\u8fdb\u884c\u9884\u6d4b\u3001\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\u548c\u4f18\u5316\u6a21\u578b [&hellip;]","protected":false},"author":3,"featured_media":943353,"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\/943347"}],"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=943347"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/943347\/revisions"}],"predecessor-version":[{"id":943354,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/943347\/revisions\/943354"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/943353"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=943347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=943347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=943347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}