{"id":1928,"date":"2025-02-26T07:18:00","date_gmt":"2025-02-25T23:18:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1928"},"modified":"2025-01-24T15:20:26","modified_gmt":"2025-01-24T07:20:26","slug":"%e7%ab%8b%e5%8d%b3%e6%8e%8c%e6%8f%a1%ef%bc%9a%e8%82%a1%e7%a5%a8%e4%ba%a4%e6%98%93%e4%b8%adai%e7%81%ab%e7%9c%bc%e9%87%91%e7%9d%9b%e7%9a%84%e5%ae%9e%e6%88%98%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/laoyulaoyu.com\/index.php\/2025\/02\/26\/%e7%ab%8b%e5%8d%b3%e6%8e%8c%e6%8f%a1%ef%bc%9a%e8%82%a1%e7%a5%a8%e4%ba%a4%e6%98%93%e4%b8%adai%e7%81%ab%e7%9c%bc%e9%87%91%e7%9d%9b%e7%9a%84%e5%ae%9e%e6%88%98%e6%8c%87%e5%8d%97\/","title":{"rendered":"\u7acb\u5373\u638c\u63e1\uff1a\u80a1\u7968\u4ea4\u6613\u4e2dAI\u201c\u706b\u773c\u91d1\u775b\u201d\u7684\u5b9e\u6218\u6307\u5357+\u6e90\u7801\uff0c\u5f00\u542f\u76c8\u5229\u4e4b\u65c5"},"content":{"rendered":"\n<p>\u4f5c\u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/1_BTS5FEtqvSa2OM0doEbrmQ.jpg\" alt=\"\" class=\"wp-image-4073\"\/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">AI \u673a\u5668\u5b66\u4e60\u5728\u80a1\u7968\u4ea4\u6613\u4e2d\u7684\u6838\u5fc3\u8bc4\u4f30\u6307\u6807\uff1a\u7cbe\u51c6\u7387\uff08Precision\uff09\u3001\u53ec\u56de\u7387\uff08Recall\uff09\u548cF1\u5206\u6570\uff08F1-Score\uff09<\/mark>\u3002\u8fd9\u4e9b\u6307\u6807\u4e0d\u4ec5\u662f\u91cf\u5316\u4ea4\u6613\u4e2d\u7684\u5173\u952e\u5de5\u5177\uff0c\u8fd8\u80fd\u5e2e\u52a9\u6211\u4eec\u4f18\u5316\u4ea4\u6613\u7b56\u7565\uff0c\u8ba9\u6295\u8d44\u51b3\u7b56\u66f4\u52a0\u79d1\u5b66\u548c\u9ad8\u6548\u3002\u5982\u679c\u4f60\u60f3\u501f\u52a9AI\u6280\u672f\u63d0\u5347\u4ea4\u6613\u80dc\u7387\uff0c\u638c\u63e1\u8fd9\u4e9b\u6307\u6807\u7edd\u5bf9\u662f\u4f60\u7684\u5fc5\u4fee\u8bfe\uff01<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u4e09\u4f4d\u4e00\u4f53\u7684\u6027\u80fd\u6307\u6807<\/strong><\/h2>\n\n\n\n<p>\u5728\u673a\u5668\u5b66\u4e60\u9886\u57df\u4e2d\uff0c\u6709\u4e09\u4e2a\u6307\u6807\u582a\u79f0\u201c\u738b\u8005\u201d\uff1a\u7cbe\u51c6\u7387\uff08Precision\uff09\u3001\u53ec\u56de\u7387\uff08Recall\uff09\u548cF1\u5206\u6570\uff08F1-Score\uff09\u3002\u5b83\u4eec\u4e0d\u4ec5\u662f\u6a21\u578b\u6027\u80fd\u7684\u6838\u5fc3\u8861\u91cf\u6807\u51c6\uff0c\u66f4\u662f\u4f18\u5316AI\u51b3\u7b56\u7684\u5229\u5668\u3002\u65e0\u8bba\u662f\u80a1\u7968\u4ea4\u6613\u8fd8\u662f\u5176\u4ed6\u5e94\u7528\u573a\u666f\uff0c\u638c\u63e1\u8fd9\u4e09\u4e2a\u6307\u6807\uff0c\u4f60\u5c31\u80fd\u5728\u673a\u5668\u5b66\u4e60\u7684\u5f81\u9014\u4e0a\u6240\u5411\u62ab\u9761\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 \u7cbe\u51c6\u7387\uff08Precision\uff09<\/strong><\/h3>\n\n\n\n<p>\u60f3\u8c61\u4f60\u5f00\u53d1\u4e86\u4e00\u4e2a\u5783\u573e\u90ae\u4ef6\u8fc7\u6ee4\u5668\uff0c\u4efb\u52a1\u662f\u5b88\u62a4\u6536\u4ef6\u7bb1\uff0c\u5c06\u90a3\u4e9b\u70e6\u4eba\u7684\u5783\u573e\u90ae\u4ef6\u7edf\u7edf\u6321\u5728\u95e8\u5916\u3002\u7cbe\u51c6\u7387\uff08Precision\uff09\u4f1a\u95ee\u4f60\uff1a\u201c\u5728\u4f60\u6807\u8bb0\u4e3a\u5783\u573e\u90ae\u4ef6\u7684\u6240\u6709\u90ae\u4ef6\u4e2d\uff0c\u6709\u591a\u5c11\u662f\u771f\u6b63\u7684\u5783\u573e\u90ae\u4ef6\uff1f\u201d\u8fd9\u4e2a\u6307\u6807\u5e2e\u52a9\u4f60\u8861\u91cf\u8fc7\u6ee4\u5668\u7684\u51c6\u786e\u6027\uff0c\u786e\u4fdd\u4f60\u4e0d\u4f1a\u8bef\u4f24\u91cd\u8981\u90ae\u4ef6\u3002<\/p>\n\n\n\n<p>\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Precision = True Positives \/ (True Positives + False Positives)\n         = TP \/ (TP + FP)<\/code><\/pre>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u8df5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>precision = precision_score(y_true, y_pred)\n# Our sample showed: 0.75<\/code><\/pre>\n\n\n\n<p>\u8fd9\u610f\u5473\u7740\u6211\u4eec\u7684\u521d\u59cb\u9884\u6d4b\u670975%\u7684\u51c6\u786e\u7387\u2026\u2026\u8868\u73b0\u4e0d\u9519\uff0c\u4f46\u4ecd\u6709\u63d0\u5347\u7a7a\u95f4\uff01\u901a\u8fc7\u4f18\u5316\u6a21\u578b\u6216\u8c03\u6574\u9608\u503c\uff0c\u6211\u4eec\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8\u7cbe\u51c6\u7387\uff0c\u51cf\u5c11\u8bef\u5224\uff0c\u8ba9\u8fc7\u6ee4\u5668\u7684\u8868\u73b0\u66f4\u4e0a\u4e00\u5c42\u697c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 \u53ec\u56de\u7387\uff08Recall\uff09<\/strong><\/h3>\n\n\n\n<p>\u5982\u679c\u8bf4\u7cbe\u51c6\u7387\u5173\u6ce8\u7684\u662f\u201c\u8d28\u91cf\u201d\uff0c\u90a3\u4e48\u53ec\u56de\u7387\uff08Recall\uff09\u5219\u66f4\u6ce8\u91cd\u201c\u5b8c\u6574\u6027\u201d\u3002\u5b83\u4f1a\u95ee\u4f60\uff1a\u201c\u5728\u6240\u6709\u5783\u573e\u90ae\u4ef6\u4e2d\uff0c\u4f60\u6210\u529f\u62e6\u622a\u4e86\u591a\u5c11\uff1f\u201d\u53ec\u56de\u7387\u5e2e\u52a9\u4f60\u8bc4\u4f30\u8fc7\u6ee4\u5668\u7684\u8986\u76d6\u80fd\u529b\uff0c\u786e\u4fdd\u5c3d\u53ef\u80fd\u591a\u7684\u5783\u573e\u90ae\u4ef6\u88ab\u6355\u83b7\uff0c\u800c\u4e0d\u662f\u6f0f\u7f51\u4e4b\u9c7c\u3002<\/p>\n\n\n\n<p>\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Recall = True Positives \/ (True Positives + False Negatives)\n       = TP \/ (TP + FN)<\/code><\/pre>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u8df5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>recall = recall_score(y_true, y_pred)\n# Our sample showed: 0.60<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u7684\u8fc7\u6ee4\u5668\u76ee\u524d\u53ea\u62e6\u622a\u4e8660%\u7684\u5783\u573e\u90ae\u4ef6\uff0c\u8fd9\u610f\u5473\u7740\u4ecd\u670940%\u7684\u201c\u6f0f\u7f51\u4e4b\u9c7c\u201d\u6084\u6084\u6e9c\u8fdb\u4e86\u6536\u4ef6\u7bb1\u3002\u8fd9\u4e9b\u9b3c\u9b3c\u795f\u795f\u7684\u5783\u573e\u90ae\u4ef6\u4e0d\u4ec5\u8ba9\u4eba\u5934\u75bc\uff0c\u8fd8\u53ef\u80fd\u5e26\u6765\u98ce\u9669\u3002\u662f\u65f6\u5019\u4f18\u5316\u6a21\u578b\uff0c\u63d0\u9ad8\u53ec\u56de\u7387\uff0c\u8ba9\u8fd9\u4e9b\u201c\u72e1\u733e\u7684\u5bb6\u4f19\u201d\u65e0\u5904\u53ef\u9003\u4e86\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.3 F1\u5206\u6570\uff08F1-Score\uff09<\/strong><\/h3>\n\n\n\n<p>\u4f46\u522b\u6025\uff0c\u6211\u4eec\u7684 F1\u5206\u6570\u5c31\u50cf\u4e00\u4f4d\u667a\u6167\u7684\u670b\u53cb\uff0c\u603b\u80fd\u627e\u5230\u7cbe\u51c6\u7387\u548c\u53ec\u56de\u7387\u4e4b\u95f4\u7684\u5b8c\u7f8e\u5e73\u8861\u3002\u5b83\u5c06\u8fd9\u4e24\u4e2a\u6307\u6807\u878d\u5408\u4e3a\u4e00\u4e2a\u5355\u4e00\u7684\u7efc\u5408\u8bc4\u5206\uff0c\u5e2e\u4f60\u5168\u9762\u8bc4\u4f30\u6a21\u578b\u7684\u6027\u80fd\u3002\u65e0\u8bba\u662f\u8ffd\u6c42\u7cbe\u51c6\u8fd8\u662f\u8986\u76d6\u5168\u9762\uff0cF1\u5206\u6570\u90fd\u80fd\u4e3a\u4f60\u6307\u660e\u6700\u4f18\u89e3\u3002<\/p>\n\n\n\n<p>\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">F1 = 2 * (Precision * Recall) \/ (Precision + Recall)<br>   = 2 * ((TP \/ (TP + FP)) * (TP \/ (TP + FN))) \/ ((TP \/ (TP + FP)) + (TP \/ (TP + FN)))<\/pre>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u8df5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>f1 = f1_score(y_true, y_pred)\n# Our sample showed: 0.67<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.4 \u5b8f\u89c2\u5e73\u5747\u6cd5<\/strong><\/h3>\n\n\n\n<p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u9700\u8981\u8df3\u51fa\u7ec6\u8282\uff0c\u4ece\u5168\u5c40\u89c6\u89d2\u5ba1\u89c6\u95ee\u9898\u3002\u8fd9\u6b63\u662f\u5b8f\u89c2\u5e73\u5747\u6cd5\uff08Macro-Averaging\uff09\u7684\u4ef7\u503c\u6240\u5728\u2014\u2014\u5b83\u901a\u8fc7\u8ba1\u7b97\u6240\u6709\u7c7b\u522b\u7684\u5e73\u5747\u503c\uff0c\u5e2e\u52a9\u6211\u4eec\u5168\u9762\u8bc4\u4f30\u6a21\u578b\u7684\u6574\u4f53\u8868\u73b0\uff0c\u907f\u514d\u56e0\u67d0\u4e00\u7c7b\u522b\u7684\u504f\u5dee\u800c\u5f71\u54cd\u5224\u65ad\u3002<\/p>\n\n\n\n<p>\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Macro-Precision = (Precision_class1 + Precision_class2 + ... + Precision_classN) \/ N<br><br>Macro-Recall = (Recall_class1 + Recall_class2 + ... + Recall_classN) \/ N<br><br>Macro-F1 = (F1_class1 + F1_class2 + ... + F1_classN) \/ N<\/pre>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u8df5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>precision_macro, recall_macro, f1_macro, _ = precision_recall_fscore_support(y_true, y_pred, average='macro')<\/code><\/pre>\n\n\n\n<p>\u5b8f\u89c2\u5e73\u5747\u6cd5\uff08Macro-Averaging\uff09\u7684\u6838\u5fc3\u601d\u60f3\u5f88\u7b80\u5355\uff1a\u5bf9\u6240\u6709\u7c7b\u522b\u7684\u8868\u73b0\u53d6\u5e73\u5747\u503c\uff0c\u65e0\u8bba\u7c7b\u522b\u7684\u5927\u5c0f\u6216\u6837\u672c\u6570\u91cf\u5982\u4f55\u3002\u8fd9\u79cd\u65b9\u6cd5\u786e\u4fdd\u6bcf\u4e2a\u7c7b\u522b\u90fd\u88ab\u5e73\u7b49\u5bf9\u5f85\uff0c\u7279\u522b\u9002\u5408\u5f53\u4f60\u5e0c\u671b\u6240\u6709\u7c7b\u522b\u90fd\u80fd\u5f97\u5230\u540c\u7b49\u91cd\u89c6\u7684\u573a\u666f\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u73b0\u5b9e\u4e16\u754c\u793a\u4f8b\uff1a\u4e8c\u8fdb\u5236\u5206\u7c7b\u62a5\u544a<\/strong><\/h2>\n\n\n\n<p>\u8ba9\u6211\u4eec\u4e00\u8d77\u6765\u5206\u6790\u4e00\u4efd\u771f\u5b9e\u7684\u5206\u7c7b\u62a5\u544a\uff0c\u901a\u8fc7\u62c6\u89e3\u62a5\u544a\u4e2d\u7684\u7ec6\u8282\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u6e05\u6670\u5730\u7406\u89e3\u6a21\u578b\u7684\u6027\u80fd\u8868\u73b0\uff0c\u5e76\u627e\u5230\u4f18\u5316\u7684\u65b9\u5411\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-153.png\" alt=\"\" class=\"wp-image-4074\"\/><\/figure>\n\n\n\n<p>\u8ba9\u6211\u4eec\u6765\u9010\u6761\u5206\u6790&#8230;&#8230;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 Class 0 \u6027\u80fd<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7cbe\u786e\u5ea6\uff1a0.97\uff0897% \u7684\u9884\u6d4b 0 \u7ea7\u5b9e\u9645\u4e3a 0 \u7ea7\uff09<\/li>\n\n\n\n<li>\u53ec\u56de\u7387\uff1a0.99\uff0899% \u7684\u5b9e\u9645 0 \u7c7b\u88ab\u6b63\u786e\u8bc6\u522b\uff09<\/li>\n\n\n\n<li>F1 \u5206\u6570\uff1a0.98\uff08\u7cbe\u786e\u5ea6\u548c\u53ec\u56de\u7387\u4e4b\u95f4\u7684\u548c\u8c10\u5e73\u8861\uff09<\/li>\n\n\n\n<li>\u652f\u6301\uff1a378 \u4e2a\u6837\u672c\uff08\u8fd9\u662f\u6211\u4eec\u5360\u591a\u6570\u7684\u73ed\u7ea7\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 Class 1&nbsp; \u6027\u80fd<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7cbe\u786e\u5ea6\uff1a0.91\uff0891% \u7684\u9884\u6d4b 1 \u7ea7\u5b9e\u9645\u4e3a 1 \u7ea7\uff09<\/li>\n\n\n\n<li>\u53ec\u56de\u7387\uff1a0.68\uff08\u5b9e\u9645\u53ea\u6709 68%  )<\/li>\n\n\n\n<li>F1 \u5206\u6570\uff1a0.78\uff08\u56e0\u53ec\u56de\u7387\u4e0b\u964d\u800c\u964d\u4f4e\uff09<\/li>\n\n\n\n<li>\u652f\u6301\uff1a31 \u4e2a\u6837\u672c\uff08\u554a\u54c8\uff01\u6211\u4eec\u6709\u4e00\u4e2a\u4e0d\u5e73\u8861\u7684\u6570\u636e\u96c6\uff01\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.3 \u5b8f\u5e73\u5747\uff08Macro Average\uff09<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Precision: 0.94 = (0.97 + 0.91) \/ 2<\/strong>\n<strong>Recall: 0.84 = (0.99 + 0.68) \/ 2<\/strong>\n<strong>F1: 0.88 = (0.98 + 0.78) \/ 2<\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.4 \u52a0\u6743\u5e73\u5747\uff08Weighted Average\uff09<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Precision: 0.97 = (0.97 * 378\/409 + 0.91 * 31\/409)<\/strong>\n<strong>Recall: 0.97 = (0.99 * 378\/409 + 0.68 * 31\/409)<\/strong>\n<strong>F1: 0.97 = (0.98 * 378\/409 + 0.78 * 31\/409)<\/strong><\/code><\/pre>\n\n\n\n<p>\u4f60\u6ce8\u610f\u5230\u4ec0\u4e48\u6709\u8da3\u7684\u73b0\u8c61\u4e86\u5417\uff1f\u6211\u4eec\u7684\u6a21\u578b\u51c6\u786e\u7387\u9ad8\u8fbe97%\u2026\u2026\u542c\u8d77\u6765\u7b80\u76f4\u4e0d\u53ef\u601d\u8bae\uff0c\u5bf9\u5427\uff1f\u4f46\u522b\u6025\u7740\u5e86\u795d\uff0c\u4ed4\u7ec6\u5206\u6790\u540e\u4f60\u4f1a\u53d1\u73b0\uff0c\u8fd9\u4e2a\u6570\u5b57\u80cc\u540e\u53ef\u80fd\u9690\u85cf\u7740\u4e00\u4e9b\u5173\u952e\u95ee\u9898\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6211\u4eec\u6709 378 \u4e2a 0 \u7c7b\u6837\u672c\uff0c\u53ea\u6709 31 \u4e2a 1 \u7c7b\u6837\u672c\uff08\u5f88\u4e0d\u5e73\u8861\u5417\uff1f\uff09<\/li>\n\n\n\n<li>\u8be5\u6a21\u578b\u5728\u8bc6\u522b 0 \u7ea7\u65b9\u9762\u8868\u73b0\u51fa\u8272\uff0899% \u7684\u53ec\u56de\u7387\uff09<\/li>\n\n\n\n<li>\u4f46\u5728 1 \u7c7b\u6837\u672c\uff0868% \u7684\u56de\u5fc6\u7387\uff09\u7684\u5b66\u4e60\u4e2d\u5374\u5f88\u5403\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u662f\u4e00\u4e2a\u5178\u578b\u7684\u201c\u51c6\u786e\u6027\u6096\u8bba\u201d\u6848\u4f8b\u2014\u2014\u9ad8\u51c6\u786e\u7387\u5e76\u4e0d\u603b\u662f\u7b49\u540c\u4e8e\u51fa\u8272\u7684\u6027\u80fd\uff01\u60f3\u8c61\u4e00\u4e0b\uff0c\u5982\u679c\u8fd9\u662f\u4e00\u4e2a\u533b\u7597\u8bca\u65ad\u6a21\u578b\uff0c\u6f0f\u638932%\u7684\u9633\u6027\u75c5\u4f8b\uff0c\u540e\u679c\u53ef\u80fd\u662f\u707e\u96be\u6027\u7684\u3002\u9ad8\u51c6\u786e\u7387\u7684\u80cc\u540e\uff0c\u5f80\u5f80\u9690\u85cf\u7740\u4e25\u91cd\u7684\u504f\u5dee\u548c\u98ce\u9669\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.5 \u4e3a\u4ec0\u4e48\u9700\u8981\u4e0d\u540c\u7684\u5e73\u5747\u503c\uff1f<\/strong><\/h3>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u4e0d\u540c\u7684\u5e73\u5747\u503c\uff1f\u56e0\u4e3a\u73b0\u5b9e\u4e16\u754c\u7684\u6570\u636e\u5f80\u5f80\u590d\u6742\u591a\u6837\uff0c\u5355\u4e00\u7684\u5e73\u5747\u503c\u65e0\u6cd5\u5168\u9762\u53cd\u6620\u6a21\u578b\u7684\u6027\u80fd\u3002\u5b8f\u89c2\u5e73\u5747\u6cd5\uff08Macro-Averaging\uff09\u5173\u6ce8\u6bcf\u4e2a\u7c7b\u522b\u7684\u5e73\u7b49\u6027\uff0c\u800c\u5fae\u89c2\u5e73\u5747\u6cd5\uff08Micro-Averaging\uff09\u5219\u66f4\u6ce8\u91cd\u6574\u4f53\u6570\u636e\u7684\u5206\u5e03\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u624d\u80fd\u66f4\u51c6\u786e\u5730\u8bc4\u4f30\u6a21\u578b\u7684\u8868\u73b0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5728\u80a1\u5e02\u9884\u6d4b\u4e2d\u7684\u5e94\u7528&nbsp;<\/strong><\/h2>\n\n\n\n<p>\u9996\u5148\u8ba9\u6211\u4eec\u4ee5\u6307\u6807\u4e3a\u4f8b\u8fdb\u884c\u5206\u6790\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 \u6307\u6807\u5206\u6790<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">            precision    recall    f1-score    support\n    Downturn       0.91      0.68      0.78        31\n    Normal         0.97      0.99      0.98       378<\/pre>\n\n\n\n<p>\u8fd9\u5bf9\u4ea4\u6613\u610f\u5473\u7740\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<p><strong>\u5728\u6b63\u5e38\u5e02\u573a\u6761\u4ef6\u4e0b\uff080\u7ea7\uff09\uff0c<\/strong>\u6211\u4eec\u7684\u6a21\u578b\u80fd\u591f\u51c6\u786e\u8bc6\u522b99%\u7684\u6b63\u5e38\u4ea4\u6613\u65e5\uff0c\u8868\u73b0\u975e\u5e38\u51fa\u8272\u3002\u8fd9\u4e0d\u4ec5\u6709\u52a9\u4e8e\u7ef4\u6301\u7a33\u5b9a\u7684\u4ea4\u6613\u4e1a\u52a1\uff0c\u8fd8\u80fd\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u8bef\u62a5\u7684\u4e0b\u8dcc\u8b66\u62a5\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u5e02\u573a\u6050\u614c\u3002<\/p>\n\n\n\n<p><strong>\u5728\u5e02\u573a\u4e0b\u6ed1\uff081\u7c7b\uff09<\/strong>\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u7684\u6a21\u578b\u9884\u6d4b\u4e0b\u8dcc\u7684\u51c6\u786e\u7387\u8fbe\u5230\u4e8691%\uff0c\u8868\u73b0\u4e0d\u4fd7\u3002\u7136\u800c\uff0c\u5b83\u4e5f\u6f0f\u6389\u4e8632%\u7684\u5b9e\u9645\u8870\u9000\u671f\uff0c\u8fd9\u610f\u5473\u7740\u5728\u718a\u5e02\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9519\u8fc7\u5173\u952e\u7684\u9884\u8b66\u4fe1\u53f7\uff0c\u5e26\u6765\u9ad8\u6602\u7684\u4ee3\u4ef7\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 \u201c\u767e\u4e07\u7f8e\u5143\u201d\u7684\u95ee\u9898<\/strong><\/h3>\n\n\n\n<p>\u4ea4\u6613\u8005\u5e94\u8be5\u4f18\u5148\u8003\u8651\u54ea\u4e2a\u6307\u6807\uff1f\u7b54\u6848\u53d6\u51b3\u4e8e\u4f60\u7684\u4ea4\u6613\u7b56\u7565\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u4f60\u66f4\u6ce8\u91cd\u907f\u514d\u8bef\u62a5\uff0c\u7cbe\u51c6\u7387\uff08Precision\uff09\u662f\u4f60\u7684\u9996\u9009\uff1b<\/li>\n\n\n\n<li>\u5982\u679c\u4f60\u5e0c\u671b\u5c3d\u53ef\u80fd\u6355\u6349\u6240\u6709\u5e02\u573a\u673a\u4f1a\uff0c\u53ec\u56de\u7387\uff08Recall\uff09\u5219\u66f4\u4e3a\u91cd\u8981\uff1b<\/li>\n\n\n\n<li>\u800c\u5982\u679c\u4f60\u8ffd\u6c42\u4e24\u8005\u7684\u5e73\u8861\uff0cF1\u5206\u6570\u5c31\u662f\u4f60\u7684\u6700\u4f73\u4f19\u4f34\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u8bf7\u6ce8\u610f\u6211\u4eec\u7684\u6570\u636e\u5206\u5e03\uff1a<\/strong>\u5728409\u4e2a\u4ea4\u6613\u65e5\u4e2d\uff0c\u6b63\u5e38\u4ea4\u6613\u65e5\u5360378\u5929\uff0c\u800c\u4f4e\u8ff7\u65e5\u4ec5\u670931\u5929\u3002\u8fd9\u79cd\u4e0d\u5747\u8861\u7684\u6570\u636e\u5206\u5e03\u610f\u5473\u7740\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u66f4\u503e\u5411\u4e8e\u9884\u6d4b\u201c\u6b63\u5e38\u201d\u60c5\u51b5\uff0c\u4ece\u800c\u5ffd\u7565\u5c11\u6570\u4f46\u91cd\u8981\u7684\u4f4e\u8ff7\u4fe1\u53f7\u3002<\/p>\n\n\n\n<p><strong>\u8fd9\u771f\u5b9e\u53cd\u6620\u4e86\u5e02\u573a\u7684\u5178\u578b\u884c\u4e3a\uff1a<\/strong>\u5e02\u573a\u5927\u591a\u6570\u65f6\u5019\u4fdd\u6301\u7a33\u5b9a\uff0c\u4f46\u5076\u5c14\u7684\u5267\u70c8\u6ce2\u52a8\uff08\u5c3d\u7ba1\u7f55\u89c1\uff09\u5374\u53ef\u80fd\u5e26\u6765\u5de8\u5927\u5f71\u54cd\u3002\u56e0\u6b64\uff0c\u6a21\u578b\u5fc5\u987b\u80fd\u591f\u6709\u6548\u5904\u7406\u8fd9\u79cd\u6570\u636e\u4e0d\u5e73\u8861\uff0c\u786e\u4fdd\u5728\u5173\u952e\u65f6\u523b\u53d1\u51fa\u51c6\u786e\u7684\u9884\u8b66\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.3  \u6e90\u4ee3\u7801\u4e0b\u8f7d<\/strong><\/h3>\n\n\n\n<p>\u6e90\u4ee3\u7801\u8bf7\u4ece\u6211\u7684Google Colab\u4e2d\u7533\u8bf7\u4e0b\u8f7d\uff1a<br><a href=\"https:\/\/colab.research.google.com\/drive\/1CAa8vSeyn5xPRq43_btbonJHdJVbov-K?usp=sharing\">https:\/\/colab.research.google.com\/drive\/1CAa8vSeyn5xPRq43_btbonJHdJVbov-K?usp=sharing<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u89c2\u70b9\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<p>\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86\u673a\u5668\u5b66\u4e60\u5728\u80a1\u7968\u4ea4\u6613\u4e2d\u6027\u80fd\u8bc4\u4f30\u7684\u5173\u952e\u6307\u6807\uff1a\u7cbe\u786e\u5ea6\uff08Precision\uff09\u3001\u53ec\u56de\u7387\uff08Recall\uff09\u548c F1 \u5206\u6570\uff08F1-Score\uff09\uff0c\u5e76\u89e3\u91ca\u4e86\u8fd9\u4e9b\u6307\u6807\u7684\u8ba1\u7b97\u65b9\u6cd5\u3001\u5b9e\u9645\u5e94\u7528\u4ee5\u53ca\u5728\u9762\u5bf9\u4e0d\u5e73\u8861\u6570\u636e\u96c6\u65f6\u5982\u4f55\u8fdb\u884c\u5b8f\u89c2\u548c\u52a0\u6743\u5e73\u5747\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7cbe\u786e\u5ea6\u3001\u53ec\u56de\u7387\u548c F1 \u5206\u6570\u662f\u8bc4\u4f30\u673a\u5668\u5b66\u4e60\u6a21\u578b\u6027\u80fd\u7684\u5173\u952e\u6307\u6807<\/strong>\uff0c\u5b83\u4eec\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u4e86\u89e3\u6a21\u578b\u5728\u4e0d\u540c\u60c5\u51b5\u4e0b\u7684\u8868\u73b0\u3002<\/li>\n\n\n\n<li>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7cbe\u786e\u5ea6\u548c\u53ec\u56de\u7387\u53ef\u80fd\u4f1a\u51b2\u7a81\uff0c\u56e0\u6b64 F1 \u5206\u6570\u4f5c\u4e3a\u5b83\u4eec\u7684\u8c03\u548c\u5e73\u5747\u503c\uff0c\u80fd\u591f\u63d0\u4f9b\u4e00\u4e2a\u66f4\u5168\u9762\u7684\u6027\u80fd\u8bc4\u4f30\u3002<\/li>\n\n\n\n<li><strong>\u4e0d\u5e73\u8861\u6570\u636e\u96c6\u5bf9\u6a21\u578b\u6027\u80fd\u8bc4\u4f30\u6709\u91cd\u8981\u5f71\u54cd<\/strong>\uff0c\u5b8f\u89c2\u5e73\u5747\u80fd\u591f\u5e73\u7b49\u5bf9\u5f85\u6240\u6709\u7c7b\u522b\uff0c\u800c\u52a0\u6743\u5e73\u5747\u5219\u8003\u8651\u4e86\u7c7b\u522b\u5927\u5c0f\u7684\u5f71\u54cd\u3002<\/li>\n\n\n\n<li>\u5728\u80a1\u7968\u5e02\u573a\u9884\u6d4b\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6027\u80fd\u6307\u6807\u5bf9\u4e8e\u4e0d\u540c\u7684\u4ea4\u6613\u7b56\u7565\u81f3\u5173\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u4fdd\u5b88\u578b\u6295\u8d44\u8005\u53ef\u80fd\u66f4\u5173\u6ce8\u7cbe\u786e\u5ea6\uff0c\u800c\u98ce\u9669\u538c\u6076\u578b\u57fa\u91d1\u5219\u53ef\u80fd\u66f4\u6ce8\u91cd\u53ec\u56de\u7387\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u4e3a\u60a8\u5e26\u6765\u4e86\u65b0\u7684\u542f\u53d1\u548c\u5b9e\u7528\u7684\u77e5\u8bc6\uff01\u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9\uff0c\u8bf7\u4e0d\u541d\u70b9\u8d5e\u548c\u5206\u4eab\uff0c\u60a8\u7684\u652f\u6301\u662f\u6211\u6301\u7eed\u521b\u4f5c\u7684\u52a8\u529b\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff0c\u6536\u76ca\u957f\u8679\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u7559\u8a00\uff0c\u6211\u4f1a\u5c3d\u5feb\u56de\u590d\uff01<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center\">\u672c\u6587\u5185\u5bb9\u4ec5\u9650\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/laoyulaoyu.com\/index.php\/2025\/02\/26\/%e7%ab%8b%e5%8d%b3%e6%8e%8c%e6%8f%a1%ef%bc%9a%e8%82%a1%e7%a5%a8%e4%ba%a4%e6%98%93%e4%b8%adai%e7%81%ab%e7%9c%bc%e9%87%91%e7%9d%9b%e7%9a%84%e5%ae%9e%e6%88%98%e6%8c%87%e5%8d%97\/\">Continue reading<span class=\"screen-reader-text\">\u7acb\u5373\u638c\u63e1\uff1a\u80a1\u7968\u4ea4\u6613\u4e2dAI\u201c\u706b\u773c\u91d1\u775b\u201d\u7684\u5b9e\u6218\u6307\u5357+\u6e90\u7801\uff0c\u5f00\u542f\u76c8\u5229\u4e4b\u65c5<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,7],"class_list":["post-1928","post","type-post","status-publish","format-standard","hentry","category-aiinvest","tag-ai","tag-7","entry"],"_links":{"self":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1928"}],"version-history":[{"count":1,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1928\/revisions"}],"predecessor-version":[{"id":1929,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1928\/revisions\/1929"}],"wp:attachment":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}