{"id":4416,"date":"2019-05-20T21:50:54","date_gmt":"2019-05-20T13:50:54","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=4416"},"modified":"2019-05-20T21:50:54","modified_gmt":"2019-05-20T13:50:54","slug":"%e5%87%86%e7%a1%ae%e7%8e%87%e3%80%81%e5%8f%ac%e5%9b%9e%e7%8e%87%e3%80%81f-measure%e7%ad%89%e6%8c%87%e6%a0%87%e7%9a%84%e7%90%86%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/4416.html","title":{"rendered":"\u51c6\u786e\u7387\u3001\u53ec\u56de\u7387\u3001F-Measure\u7b49\u6307\u6807\u7684\u7406\u89e3"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u7f18\u7531\uff1a\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u5728\u505a\u6570\u636e\u5206\u6790\u7684\u65f6\u5019\u5e94\u8be5\u662f\u7ed5\u4e0d\u5f00\u8fd9\u51e0\u4e2a\u8bc4\u4ef7\u6307\u6807\u7684\uff0c\u4f46\u662f\u6211\u4e4b\u524d\u8fd8\u771f\u7684\u662f\u4e0d\u592a\u61c2\u3002\u3002\u3002\u62bd\u65f6\u95f4\u627e\u70b9\u8d44\u6599\u5b66\u4e60\u4e00\u4e0b\u3002\u82e6\u7ec3\u57fa\u672c\u529f\uff01<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u6b63\u6587\uff1a\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u53c2\u8003\u89e3\u7b54\uff1a\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>1\u3001\u51c6\u786e\u7387\u4e0e\u53ec\u56de\u7387\uff08Precision &amp; Recall\uff09<\/strong><\/h6>\n\n\n\n<p><strong>\u51c6\u786e\u7387\u662f\u9488\u5bf9\u6211\u4eec\u9884\u6d4b\u7ed3\u679c\u800c\u8a00\u7684<\/strong>\uff0c\u5b83\u8868\u793a\u7684\u662f\u9884\u6d4b\u4e3a\u6b63\u7684\u6837\u672c\u4e2d\u6709\u591a\u5c11\u662f\u771f\u6b63\u7684\u6b63\u6837\u672c\u3002\u90a3\u4e48\u9884\u6d4b\u4e3a\u6b63\u5c31\u6709\u4e24\u79cd\u53ef\u80fd\u4e86\uff0c\u4e00\u79cd\u5c31\u662f\u628a\u6b63\u7c7b\u9884\u6d4b\u4e3a\u6b63\u7c7b(TP)\uff0c\u53e6\u4e00\u79cd\u5c31\u662f\u628a\u8d1f\u7c7b\u9884\u6d4b\u4e3a\u6b63\u7c7b(FP)\u3002<\/p>\n\n\n\n<p><strong>\u800c\u53ec\u56de\u7387\u662f\u9488\u5bf9\u6211\u4eec\u539f\u6765\u7684\u6837\u672c\u800c\u8a00\u7684<\/strong>\uff0c\u5b83\u8868\u793a\u7684\u662f\u6837\u672c\u4e2d\u7684\u6b63\u4f8b\u6709\u591a\u5c11\u88ab\u9884\u6d4b\u6b63\u786e\u4e86\u3002\u90a3\u4e5f\u6709\u4e24\u79cd\u53ef\u80fd\uff0c\u4e00\u79cd\u662f\u628a\u539f\u6765\u7684\u6b63\u7c7b\u9884\u6d4b\u6210\u6b63\u7c7b(TP)\uff0c\u53e6\u4e00\u79cd\u5c31\u662f\u628a\u539f\u6765\u7684\u6b63\u7c7b\u9884\u6d4b\u4e3a\u8d1f\u7c7b(FN)\u3002<\/p>\n\n\n\n<p>\u5176\u5b9e\u5c31\u662f\u5206\u6bcd\u4e0d\u540c\uff0c\u4e00\u4e2a\u5206\u6bcd\u662f\u9884\u6d4b\u4e3a\u6b63\u7684\u6837\u672c\u6570\uff0c\u53e6\u4e00\u4e2a\u662f\u539f\u6765\u6837\u672c\u4e2d\u6240\u6709\u7684\u6b63\u6837\u672c\u6570\u3002<\/p>\n\n\n\n<p>\u5728\u4fe1\u606f\u68c0\u7d22\u9886\u57df\uff0c\u51c6\u786e\u7387\u548c\u53ec\u56de\u7387\u53c8\u88ab\u79f0\u4e3a\u67e5\u51c6\u7387\u548c\u67e5\u5168\u7387\uff1a<\/p>\n\n\n\n<p><strong>(\u51c6\u786e\u7387) \u67e5\u51c6\u7387<\/strong>\uff1d\u68c0\u7d22\u51fa\u7684\u76f8\u5173\u4fe1\u606f\u91cf \/ \u68c0\u7d22\u51fa\u7684\u4fe1\u606f\u603b\u91cf<br><strong>(\u53ec\u56de\u7387) \u67e5\u5168\u7387<\/strong>\uff1d\u68c0\u7d22\u51fa\u7684\u76f8\u5173\u4fe1\u606f\u91cf \/ \u7cfb\u7edf\u4e2d\u7684\u76f8\u5173\u4fe1\u606f\u603b\u91cf<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u624b\u4e0a\u670960\u4e2a\u6b63\u6837\u672c\uff0c40\u4e2a\u8d1f\u6837\u672c\uff0c\u6211\u4eec\u8981\u627e\u51fa\u6240\u6709\u7684\u6b63\u6837\u672c\uff0c\u7cfb\u7edf\u67e5\u627e\u51fa50\u4e2a\uff0c\u5176\u4e2d\u53ea\u670940\u4e2a\u662f\u771f\u6b63\u7684\u6b63\u6837\u672c\uff0c\u8ba1\u7b97\u4e0a\u8ff0\u5404\u6307\u6807\u3002<\/p>\n\n\n\n<p>TP: \u5c06\u6b63\u7c7b\u9884\u6d4b\u4e3a\u6b63\u7c7b\u6570 40<br>FN: \u5c06\u6b63\u7c7b\u9884\u6d4b\u4e3a\u8d1f\u7c7b\u6570 20<br>FP: \u5c06\u8d1f\u7c7b\u9884\u6d4b\u4e3a\u6b63\u7c7b\u6570 10<br>TN: \u5c06\u8d1f\u7c7b\u9884\u6d4b\u4e3a\u8d1f\u7c7b\u6570 30<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u7cbe\u786e\u7387(accuracy)<\/strong>= \u9884\u6d4b\u5bf9\u7684\/\u6240\u6709= (TP+TN)\/(TP+FN+FP+TN) = 70%<\/li><li><strong>\u51c6\u786e\u7387(precision)<\/strong>= TP\/(TP+FP)= 80%<\/li><li><strong>\u53ec\u56de\u7387(recall)<\/strong>= TP\/(TP+FN)= 2\/3<\/li><\/ul>\n\n\n\n<p>\u53ec\u56de\u7387 (Recall)\uff1a\u6b63\u6837\u672c\u6709\u591a\u5c11\u88ab\u627e\u51fa\u6765\u4e86\uff08\u53ec\u56de\u4e86\u591a\u5c11\uff09\u3002<\/p>\n\n\n\n<p>\u51c6\u786e\u7387 (Precision)\uff1a\u4f60\u8ba4\u4e3a\u7684\u6b63\u6837\u672c\uff0c\u6709\u591a\u5c11\u731c\u5bf9\u4e86\uff08\u731c\u7684\u51c6\u786e\u6027\u5982\u4f55\uff09\u3002<\/p>\n\n\n\n<p><strong>\u4e24\u8005\u53d6\u503c\u57280\u548c1\u4e4b\u95f4\uff0c\u6570\u503c\u8d8a\u63a5\u8fd11\uff0c\u67e5\u51c6\u7387\u6216\u67e5\u5168\u7387\u5c31\u8d8a\u9ad8\u3002<\/strong><\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>2\u3001\u7efc\u5408\u8bc4\u4ef7\u6307\u6807\uff08F-Measure\uff09<\/strong><\/h6>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>P\u548cR\u6307\u6807\u6709\u65f6\u5019\u4f1a\u51fa\u73b0\u7684\u77db\u76fe\u7684\u60c5\u51b5\uff0c\u8fd9\u6837\u5c31\u9700\u8981\u7efc\u5408\u8003\u8651\u4ed6\u4eec\uff0c\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u5c31\u662fF-Measure\uff08\u53c8\u79f0\u4e3aF-Score\uff09\u3002<\/p><p><strong>F-Measure\u662fPrecision\u548cRecall\u52a0\u6743\u8c03\u548c\u5e73\u5747<\/strong>\uff1a<\/p><p>F = (a*a<em> + 1)<\/em>P<em>R \/ <\/em>a*a*(P+R)<\/p><p>\u5f53\u53c2\u6570\u03b1=1\u65f6\uff0c\u5c31\u662f\u6700\u5e38\u89c1\u7684F1\uff0c\u4e5f\u5373\uff1a<\/p><p>F1 = (2*P*R) \/ (P+R)<\/p><p>\u53ef\u77e5F1\u7efc\u5408\u4e86P\u548cR\u7684\u7ed3\u679c\uff0c\u5f53F1\u8f83\u9ad8\u65f6\u5219\u80fd\u8bf4\u660e\u8bd5\u9a8c\u65b9\u6cd5\u6bd4\u8f83\u6709\u6548\u3002<\/p><\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"id-\u6a21\u677f-\u53c2\u8003\u94fe\u63a5\uff1a\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5982\u4f55\u89e3\u91ca\u53ec\u56de\u7387\u4e0e\u51c6\u786e\u7387\uff1f<\/strong><br><a href=\"https:\/\/www.zhihu.com\/question\/19645541\">https:\/\/www.zhihu.com\/question\/19645541<\/a><\/li><li>\u8c08\u8c08\u53ec\u56de\u7387\uff08R\u503c\uff09\uff0c\u51c6\u786e\u7387\uff08P\u503c\uff09\u53caF\u503c<br><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/26387920\">https:\/\/zhuanlan.zhihu.com\/p\/26387920<\/a><\/li><li><strong>\u63a8\u8350\u7cfb\u7edf\u8bc4\u6d4b\u6307\u6807\u2014\u51c6\u786e\u7387(Precision)\u3001\u53ec\u56de\u7387(Recall)\u3001F\u503c(F-Measure)&nbsp;<\/strong><br><a href=\"http:\/\/bookshadow.com\/weblog\/2014\/06\/10\/precision-recall-f-measure\/\">http:\/\/bookshadow.com\/weblog\/2014\/06\/10\/precision-recall-f-measure\/<\/a><\/li><li>\u5206\u7c7b (Classification)\uff1a\u7cbe\u786e\u7387\u548c\u53ec\u56de\u7387<br><a href=\"https:\/\/developers.google.com\/machine-learning\/crash-course\/classification\/precision-and-recall?hl=zh-cn\">https:\/\/developers.google.com\/machine-learning\/crash-course\/classification\/precision-and-recall?hl=zh-cn<\/a><\/li><li>\u51c6\u786e\u7387(Accuracy), \u7cbe\u786e\u7387(Precision), \u53ec\u56de\u7387(Recall)\u548cF1-Measure<br><a href=\"https:\/\/blog.argcv.com\/articles\/1036.c\">https:\/\/blog.argcv.com\/articles\/1036.c<\/a><\/li><li>\u51c6\u786e\u7387\uff08accuracy\uff09\u3001\u7cbe\u786e\u7387\uff08precision\uff09\u3001\u53ec\u56de\u7387\uff08recall\uff09<br><a href=\"https:\/\/blog.csdn.net\/Cheese_pop\/article\/details\/78228156\">https:\/\/blog.csdn.net\/Cheese_pop\/article\/details\/78228156<\/a><\/li><li>\u673a\u5668\u5b66\u4e60\uff1a\u51c6\u786e\u7387(Precision)\u3001\u53ec\u56de\u7387(Recall)\u3001F\u503c(F-Measure)\u3001ROC\u66f2\u7ebf\u3001PR\u66f2\u7ebf<br><a href=\"https:\/\/blog.csdn.net\/quiet_girl\/article\/details\/70830796\">https:\/\/blog.csdn.net\/quiet_girl\/article\/details\/70830796<\/a><\/li><li>\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u8861\u91cf\u4e0d\u6b62\u51c6\u786e\u7387\uff0c\u8fd8\u6709\u7cbe\u5ea6\u548c\u53ec\u56de\u7387<br><a href=\"https:\/\/www.jiqizhixin.com\/articles\/2018-03-17-5\">https:\/\/www.jiqizhixin.com\/articles\/2018-03-17-5<\/a><\/li><li>F1\u503c<br><a href=\"https:\/\/wikipedia.org\/wiki\/F1_score\">https:\/\/wikipedia.org\/wiki\/F1_score<\/a><\/li><\/ul>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u5728\u505a\u6570\u636e\u5206\u6790\u7684\u65f6\u5019\u5e94\u8be5\u662f\u7ed5\u4e0d\u5f00\u8fd9\u51e0\u4e2a\u8bc4\u4ef7\u6307\u6807\u7684\uff0c\u4f46\u662f\u6211\u4e4b\u524d\u8fd8\u771f\u7684\u662f\u4e0d\u592a\u61c2\u3002\u3002\u3002\u62bd\u65f6\u95f4\u627e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[1405,1406,1407,1403,1404],"class_list":["post-4416","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","tag-f-measure","tag-precision","tag-recall","tag-1403","tag-1404"],"views":7275,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=4416"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4416\/revisions"}],"predecessor-version":[{"id":4448,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4416\/revisions\/4448"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=4416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=4416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=4416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}