{"id":311,"date":"2017-08-08T19:51:30","date_gmt":"2017-08-08T11:51:30","guid":{"rendered":"http:\/\/www.tastestars.com\/?p=311"},"modified":"2017-08-08T19:55:07","modified_gmt":"2017-08-08T11:55:07","slug":"311","status":"publish","type":"post","link":"https:\/\/tastestars.com\/index.php\/2017\/08\/08\/311\/","title":{"rendered":"Matlab\u6a21\u5f0f\u8bc6\u522b\u5de5\u5177\u7bb1"},"content":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u6a21\u5f0f\u8bc6\u522b\uff1f<br \/>\n\u4fbf\u4e8e\u9762\u5bf9\u6210\u5343\u4e0a\u4e07\u7684\u6570\u636e\u8fdb\u884c\u5206\u7c7b\u3002<br \/>\n\u8f93\u5165\u4e3a\u5b9e\u9a8c\u6d4b\u5f97\u7684\u6570\u636ei\uff0c\u8f93\u51fa\u4e3a\u60f3\u8fdb\u884c\u5206\u7c7b\u7684\u79cd\u7c7b\uff0c\u75280\u30011\u6765\u8868\u793a\u3002\u82e5\u4e0d\u6b62\u4e24\u7c7b\uff0c\u7528\u591a\u4e2a0\u4e0e\u4e00\u4e2a1\u8868\u793a\u3002\u5982\u56db\u4e2a0001\u30010010\u30010100\u30011000.<\/p>\n<p>\u6a21\u5f0f\u8bc6\u522b\u8bc4\u5224\u53c2\u6570\u4e00\u822c\u7528\u4e24\u4e2a\uff1a<br \/>\nPlot confusion matrix<br \/>\nPlot ROC(receive operating characteristics)<\/p>\n<p>\u4ee5Training confusion matrix\u4e3a\u4f8b\u3002 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"313\" data-permalink=\"https:\/\/tastestars.com\/index.php\/2017\/08\/08\/311\/%e6%88%aa%e5%9b%be\/\" data-orig-file=\"https:\/\/tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe.png\" data-orig-size=\"603,624\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u622a\u56fe\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe.png\" src=\"http:\/\/www.tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe.png\" alt=\"\" width=\"603\" height=\"624\" class=\"alignnone size-full wp-image-313\" \/><br \/>\nM\uff081\uff0c1\uff09\uff0c\u5bf9\u5e94\u5185\u542b[1000\uff0c17.1%]\u6570\u5b57\u3002\u8868\u793a\uff0c\u67091000\u4e2a\u8f93\u51fa\u4e3a1\u7c7b\u4e2d\uff0c\u88ab\u6b63\u786e\u53cd\u5e94\u4e86\u662f1\u7c7b\u3002<br \/>\nM\uff081\uff0c2\uff09\uff0c\u8868\u793a\uff1a\u5728253\u4e2a\u8f93\u51fa\u4e3a1\u7c7b\u4e2d\uff0c\u5374\u5b9e\u9645\u4e0a\u662f\u5c5e\u4e8e\u7b2c2\u7c7b\u3002<br \/>\nM\uff081\uff0c3\uff09\uff0c\u5bf9\u5e94\u5185\u542b[79.8%\uff0c20.2%]\u3002\u8868\u793a\uff0c\u5728\u8f93\u51fa\u76841\u4e2d\uff0c\u670979.8%\u88ab\u6b63\u786e\u53cd\u5e94\u4e86\u3002<br \/>\nM\uff083\uff0c1\uff09\uff0c\u5bf9\u5e94\u5185\u542b[69.5%\uff0c30.5%]\u3002\u8868\u793a\uff0c\u5b9e\u9645\u4e2d\u5c5e\u4e8e\u7b2c1\u7c7b\u7684\u4e2a\u6570\u4e2d\uff0c\u670969.5%\u7684\u4e2a\u4f53\u88ab\u6b63\u786e\u8ba4\u522b\u3002<br \/>\nM\uff083\uff0c2\uff09\uff0c\u8868\u793a\uff0c\u5b9e\u9645\u4e2d\u5c5e\u4e8e\u7b2c2\u7c7b\u7684\u4e2a\u6570\u4e2d\uff0c\u670994.3%\u7684\u4e2a\u4f53\u88ab\u6b63\u786e\u8ba4\u522b\u3002<br \/>\nM\uff083\uff0c3\uff09\uff0c\u8868\u793a\uff0c\u603b\u4f53\u4e0a\u770b\uff0c\u670988.2%\u7684\u5206\u7c7b\u4e2a\u4f53\u88ab\u8bad\u7ec3\u7684\u6a21\u578b\u6b63\u786e\u8ba4\u522b\u6216\u5206\u7c7b\u3002<\/p>\n<p>\u5176\u4e2dM(3\uff0c1)=M(1,1)\/[M(1,1)+M(2,1)] \u8868\u793aSensitivity\uff08\u7075\u654f\u6027\uff09\uff0c<br \/>\n\u5176\u4e2dM(3\uff0c2)=M(1,2)\/[M(1,1)+M(2,2)] \u8868\u793aSpecificity\uff08\u4e13\u4e00\u6027\uff09\uff0c<br \/>\n\u5373\u8986\u76d6\u7387\uff08\u6839\u636e\u81ea\u5df1\u9700\u6c42\u9009\u62e9M(3\uff0c1),M(3\uff0c2)\uff09<br \/>\n\u5176\u4e2dM(1\uff0c3)=M(1,1)\/[M(1,1)+M(1,2)] \u8868\u793apositive predictive value \uff0c<br \/>\n\u5176\u4e2dM(2\uff0c3)=M(2,1)\/[M(2,1)+M(2,2)] \u8868\u793aNegative predictive value\uff0c<br \/>\n\u5373\u547d\u4e2d\u7387\uff08\u6839\u636e\u81ea\u5df1\u9700\u6c42\u9009\u62e9M(1\uff0c3),M(2\uff0c3)\uff09<br \/>\n \u53ef\u4ee5\u770b\u8fd9\u7bc7\u535a\u6587\u5e2e\u52a9\u7406\u89e3\uff1ahttp:\/\/blog.csdn.net\/u010159842\/article\/details\/53083382<\/p>\n<p>\u51e0\u7ec4\u76f8\u5bf9\u5e94\u7684\u6982\u5ff5\uff1a<br \/>\n1. sensitivity vs. specificity<br \/>\n2. recall vs. precision<br \/>\n3. accuracy vs. error rate<br \/>\n4. type I error vs. type II error<br \/>\n5. \u9488\u5bf9precision\u548crecall\u6709F1\u6307\u6807\uff0c\u7528\u4e8e\u5b9e\u73b0\u4e24\u8005\u4e4b\u95f4\u7684tradeoff\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u5224\u65ad\u6807\u51c6\u4e3aROC<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"312\" data-permalink=\"https:\/\/tastestars.com\/index.php\/2017\/08\/08\/311\/%e6%88%aa%e5%9b%be-1\/\" data-orig-file=\"https:\/\/tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe-1.png\" data-orig-size=\"544,527\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u622a\u56fe (1)\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe-1.png\" src=\"http:\/\/www.tastestars.com\/wp-content\/uploads\/2017\/08\/\u622a\u56fe-1.png\" alt=\"\" width=\"544\" height=\"527\" class=\"alignnone size-full wp-image-312\" \/><br \/>\n\u6a2a\u8f74\u4e3a\u9519\u8bef\u51b3\u5b9a\uff0c\u7eb5\u8f74\u4e3a\u6b63\u786e\u51b3\u5b9a\u3002\u8d8a\u9760\u8fd1\u5de6\u4e0a\u65b9\uff080\uff0c1\uff09\u8d8a\u597d<\/p>\n<p>\u987a\u4fbf\u8865\u5145\u4e00\u4e0b\u6a21\u5f0f\u8bc6\u522b\u548c\u6a21\u5f0f\u5206\u7c7b\u7684\u533a\u522b\uff1a<br \/>\n\u6a21\u5f0f\u8bc6\u522b\uff1a\u60f3\u8c61\u4e0b\u516c\u56ed\u7684\u8349\u5730\u4e0a\u4e00\u4e2a\u5973\u5b69\u548c\u4e24\u53ea\u72d7\u73a9\u3002\uff0c\u8f93\u51fa\u90a3\u4e2a\u4f4d\u7f6e\uff0c\u4ec0\u4e48\u7269\u79cd\u3002<br \/>\n\u6a21\u5f0f\u5206\u7c7b\uff1a\u8f93\u5165\u4e00\u5f20\u7167\u7247\uff0c\u8f93\u51fa\u662f\u4e0d\u662f\u4eba\uff0c\u662f\u4e0d\u662f\u72d7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u6a21\u5f0f\u8bc6\u522b\uff1f \u4fbf\u4e8e\u9762\u5bf9\u6210\u5343\u4e0a\u4e07\u7684\u6570\u636e\u8fdb\u884c\u5206\u7c7b\u3002 \u8f93\u5165\u4e3a\u5b9e\u9a8c\u6d4b\u5f97\u7684\u6570\u636ei\uff0c\u8f93\u51fa\u4e3a\u60f3\u8fdb\u884c\u5206\u7c7b\u7684\u79cd\u7c7b\uff0c\u75280\u30011\u6765 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[39],"tags":[43,46,45],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-matlabstudy","tag-matlab","tag-46","tag-45"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s9Hs6X-311","_links":{"self":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":2,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}