{"id":2845,"date":"2023-07-28T23:12:28","date_gmt":"2023-07-28T15:12:28","guid":{"rendered":"http:\/\/103.118.41.220\/docs\/?p=2845"},"modified":"2025-01-01T22:44:30","modified_gmt":"2025-01-01T14:44:30","slug":"cnnclass","status":"publish","type":"post","link":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/","title":{"rendered":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801"},"content":{"rendered":"         <style>\r\n             #player69ed6f1161d38.h5vp_player { widthborder-radius overflow: hidden; }        <\/style>\r\n        <div id=\"h5vp_player\">\r\n            <div id=\"player69ed6f1161d38\" class=\"h5vp_player h5vp_player_initializer\" data-settings=\"{&quot;options&quot;:{&quot;controls&quot;:[&quot;play-large&quot;,&quot;rewind&quot;,&quot;play&quot;,&quot;fast-forward&quot;,&quot;progress&quot;,&quot;current-time&quot;,&quot;mute&quot;,&quot;volume&quot;,&quot;settings&quot;,&quot;fullscreen&quot;],&quot;loop&quot;:{&quot;active&quot;:false},&quot;muted&quot;:false,&quot;hideControls&quot;:true,&quot;autoplay&quot;:false,&quot;tooltips&quot;:{&quot;controls&quot;:true,&quot;seek&quot;:true},&quot;resetOnEnd&quot;:true,&quot;captions&quot;:{&quot;active&quot;:true,&quot;update&quot;:true}},&quot;infos&quot;:{&quot;source&quot;:&quot;https:\\\/\\\/khscience.vip:555\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/CNN\\u5206\\u7c7b_x264.mp4&quot;,&quot;poster&quot;:&quot;&quot;,&quot;id&quot;:0}}\">\r\n                <video controls playsinline poster=\"\"  >\r\n                    <source src=\"https:\/\/khscience.vip:555\/wp-content\/uploads\/2023\/09\/CNN\u5206\u7c7b_x264.mp4\" type=\"video\/mp4\">\r\n                    Your browser does not support the video tag.\r\n                <\/video>\r\n            <\/div>\r\n        <\/div>\r\n        \n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-1 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-outline has-small-font-size\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.bilibili.com\/video\/BV1981xY7EHr\/?vd_source=5e65959f8a047340cb194f5cc1d54eb4\" target=\"_blank\" rel=\"noreferrer noopener\">\u89c6\u9891\u5907\u7528\u5730\u5740<\/a><\/div>\n<\/div>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p class=\"has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-8f2b8e2afd86b2a048a67cf7f3780e57\">-\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff0c\u4e14\u6709\u6f14\u793a\u6848\u4f8b\u3002<\/p>\n\n\n\n<p>-\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc<span style=\"color:#cf2e2e\" class=\"tadv-color\">\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784<\/span><\/p>\n\n\n\n<p>-\u53ef\u4ee5\u5feb\u901f\u5212\u5206<span style=\"color:#ff6900\" class=\"tadv-color\">\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6<\/span>\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6<span style=\"color:#ff6900\" class=\"tadv-color\">\u6df7\u6dc6\u77e9\u9635<\/span><\/p>\n\n\n\n<p>-\u652f\u6301<span style=\"color:#fcb900\" class=\"tadv-color\">\u5411\u91cf\u548c\u7d22\u5f15<\/span>\u4e24\u79cd\u5f62\u5f0f\u7684\u6807\u7b7e\u8f93\u5165<\/p>\n\n\n\n<p>-\u591a\u79cd<span style=\"color:#00d084\" class=\"tadv-color\">\u8bad\u7ec3\u53c2\u6570<\/span>\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49<\/p>\n\n\n\n<p>-\u53ef\u8bbe\u7f6e<span style=\"color:#8ed1fc\" class=\"tadv-color\">\u968f\u673a\u79cd\u5b50<\/span>\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4<\/p>\n\n\n\n<p>\u2013<strong>\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709<span style=\"color:#9b51e0\" class=\"tadv-color\">\u5bfc\u5165\u6570\u636e<\/span>\u548c<span style=\"color:#9b51e0\" class=\"tadv-color\">\u8c03\u53c2<\/span>\u3002<\/strong><\/p>\n\n\n\n<p>\u2013<strong>\u7edd\u5927\u591a\u6570\u6d41\u7a0b\u90fd\u88ab\u5c01\u88c5\u56fa\u5316\u5230\u51fd\u6570\u4e2d\uff0c\u4eff\u7167\u6848\u4f8b\u5bfc\u5165\u4f60\u7684\u6570\u636e\u5373\u523b\u5f97\u5230\u7ed3\u679c~<\/strong><\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e00\u3001\u4ee3\u7801\u8fd0\u884c\u73af\u5883<\/strong><\/h4>\n\n\n\n<p class=\"is-style-iw-2em\">MATLAB2018b\u53ca\u66f4\u65b0\u7248\u672c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u7a0b\u5e8f\u4ecb\u7ecd<\/strong><\/h4>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"186\" height=\"163\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/08\/image-1.png\" alt=\"\" class=\"wp-image-2902\"\/><\/figure><\/div>\n\n\n<p class=\"is-style-iw-2em\">\u6ce8\uff1a<img decoding=\"async\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2020\/04\/d2f64ad140f71d4582ec56dfb0893b44.png\">\u56fe\u6807\u4ee3\u8868\u8be5m\u6587\u4ef6\u4e3a\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\uff1b<img decoding=\"async\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2020\/04\/5823613e4f686c23a078445e25e3e8eb.png\">\u56fe\u6807\u4ee3\u8868\u51fd\u6570\u6587\u4ef6\uff0c\u5728\u6ca1\u6709\u8f93\u5165\u53d8\u91cf\u7684\u60c5\u51b5\u4e0b\u65e0\u6cd5\u76f4\u63a5\u8fd0\u884c\u3002\u66f4\u8be6\u7ec6\u7684\u89e3\u91ca\u53ef\u4ee5\u770b<a href=\"https:\/\/ww2.mathworks.cn\/help\/matlab\/learn_matlab\/scripts-and-functions.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u8fd9\u91cc<\/a>\u3002<\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-57ddbfb1d35d7ed9779591dc2b3ffa6c\"><strong>1.scriptClassCNNs_MNIST.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u4f7f\u7528MNIST\u6570\u636e\u96c6\u8fdb\u884c\u624b\u5199\u5b57\u4f53\u6570\u5b57\u7684\u8bc6\u522b\u7684\u6848\u4f8b\uff0c\u5176\u4e2d\u6f14\u793a\u4e86FunClassCNNs\u51fd\u6570\u5bf9\u4e8e<strong>\u4e8c\u7ef4\u6570\u636e<\/strong>\uff08\u6216\u8005\u8bf4\u9ed1\u767d\u56fe\u7247\uff09\u7684\u5e94\u7528\u65b9\u5f0f\u793a\u8303\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u3002\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u5c06\u4f1a\u753b\u51fa\u5982\u4e0b\u56fe\u50cf\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff081\uff09\u6df7\u6dc6\u77e9\u9635\u56fe\u7247\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6df7\u6dc6\u77e9\u9635\uff08Confusion Matrix\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u8bc4\u4f30\u5206\u7c7b\u6a21\u578b\u6027\u80fd\u7684\u5de5\u5177\u3002\u5c31\u50cf\u4e0b\u56fe\uff0c\u7ed3\u679c\u662f\u4e00\u4e2a\u6b63\u65b9\u5f62\u77e9\u9635\u3002\u5176\u4e2d\u6bcf\u4e00\u5217\u5bf9\u5e94\u4e00\u4e2a\u5b9e\u9645\u7c7b\u522b\uff0c\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e00\u4e2a\u9884\u6d4b\u7c7b\u522b\u3002\u5bf9\u89d2\u7ebf\u7eff\u8272\u90e8\u5206\u4ee3\u8868\u9884\u6d4b\u7ed3\u679c\u4e0e\u5b9e\u9645\u7c7b\u522b\u76f8\u540c\uff08\u5373\u9884\u6d4b\u6b63\u786e\uff09\u7684\u6570\u91cf\u548c\u6bd4\u4f8b\uff0c\u7ea2\u8272\u90e8\u5206\u5219\u4ee3\u8868\u9884\u6d4b\u9519\u8bef\u7684\u6570\u91cf\u548c\u6bd4\u4f8b\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p class=\"is-style-iw-2em\">\u6bd4\u5982\u7b2c3\u884c\u7b2c4\u5217\u7ea2\u8272\u65b9\u6846\u4e2d\u7684\u6570\u5b571\uff0c\u4ee3\u8868\u5bf9\u4e8e\u672c\u6b21\u5206\u7c7b\uff0c\u6709\u4e00\u4e2a\u624b\u5199\u6570\u5b57\u201c3\u201d\u88ab\u5206\u7c7b\u6210\u4e86\u201c2\u201d\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u89e3\u8bfb\u6df7\u6dc6\u77e9\u9635\u7684\u5173\u952e\u662f\u89c2\u5bdf\u5bf9\u89d2\u7ebf\u5143\u7d20\u548c\u975e\u5bf9\u89d2\u7ebf\u5143\u7d20\u3002\u5728\u5bf9\u89d2\u7ebf\u4e0a\u7684\u5143\u7d20\u8868\u793a\u6b63\u786e\u5206\u7c7b\u7684\u6837\u672c\u6570\u91cf\uff0c\u800c\u975e\u5bf9\u89d2\u7ebf\u4e0a\u7684\u5143\u7d20\u8868\u793a\u88ab\u8bef\u5206\u7c7b\u7684\u6837\u672c\u6570\u91cf\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6700\u4e0b\u8fb9\u4e00\u884c\u4ee3\u8868\u4e86\u201c\u6bcf\u7c7b\u6570\u636e\u5b9e\u9645\u8bc6\u522b\u6210\u529f\u7684\u6bd4\u4f8b\u201d\uff1b\u6700\u53f3\u8fb9\u4e00\u5217\u201c\u5206\u7c7b\u4e3a\u8be5\u7c7b\u522b\u7684\u6570\u636e\u4e2d\u5b9e\u9645\u5c5e\u4e8e\u8be5\u7c7b\u522b\u7684\u6bd4\u4f8b\u201d\uff0c\u7a0d\u5fae\u6709\u70b9\u7ed5\uff0c\u5927\u5bb6\u53ef\u4ee5\u591a\u5ff5\u51e0\u904d\u3002\u3002\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6700\u53f3\u4e0b\u89d2\u7684\u6570\u636e\u53ca\u5168\u4f53\u6570\u636e\u7684\u8bc6\u522b\u51c6\u786e\u7387\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e2a\u56fe\u9488\u5bf9\u7684\u662f\u6d4b\u8bd5\u96c6\u6570\u636e\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6df7\u6dc6\u77e9\u9635\u53ef\u4ee5\u5168\u9762\u5730\u63cf\u8ff0\u5206\u7c7b\u7f51\u7edc\u7684\u7279\u6027\uff0c\u5c5e\u4e8e\u5199\u8bba\u6587\u5fc5\u5907\u56fe\u7247\u3002<\/p>\n<\/div><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/picx.zhimg.com\/80\/v2-33641163437f56ff3b79f17ba0d44242_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u6df7\u6dc6\u77e9\u9635<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff082\uff09\u8bad\u7ec3\u8fc7\u7a0b\u56fe\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u8fd9\u5f20\u56fe\u7247\u5728\u7a0b\u5e8f\u8fd0\u884c\u7684\u9636\u6bb5\u5c31\u5728\u4e0d\u65ad\u66f4\u65b0\u8fed\u4ee3\uff0c\u4e0a\u4e0b\u4e24\u5f20\u56fe\u5206\u522b\u662f\u5206\u7c7b\u51c6\u786e\u5ea6\u548closs\u503c\u7684\u6536\u655b\u8fc7\u7a0b\u3002\u5176\u4e2d\u84dd\u8272\u7ebf\u6761\u662f\u8bad\u7ec3\u96c6\u7ed3\u679c\uff0c\u9ed1\u8272\u7ebf\u6761\u662f\u9a8c\u8bc1\u96c6\u7ed3\u679c\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u5982\u679c\u5acc\u8fd9\u5f20\u56fe\u4e11\u7684\uff0c\u540c\u5b66\u4eec\u4e5f\u53ef\u4ee5\u7528\u5bfc\u51fa\u7684\u8bad\u7ec3\u8fc7\u7a0b\u6570\u636e\u81ea\u5df1\u753b\u56fe\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u4e4b\u540e\uff0c\u76f8\u5173\u6570\u636e\u5728MATLAB\u5de5\u4f5c\u533a\u7684info\u53d8\u91cf\u91cc\u53ef\u4ee5\u627e\u5230\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6b64\u56fe\u4e5f\u662f\u8bba\u6587\u5fc5\u753b\u56fe\u4e4b\u4e00\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-1d762649a1ee98de6b94ae58eb4b79ca_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u8bad\u7ec3\u8fc7\u7a0b\u56fe<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff083\uff09\u7f51\u7edc\u7ed3\u6784\u56fe\u3001\u8868\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u8fd9\u5f20\u56fe\u5305\u542b\u4e86\u7f51\u7edc\u7ed3\u6784\u56fe\uff0c\u4ee5\u53ca\u6bcf\u5c42\u7f51\u7edc\u7684\u540d\u79f0\u3001\u7c7b\u578b\u3001\u53c2\u6570\u5c5e\u6027\u7b49\u4fe1\u606f\u8868\u683c\u3002\u65b9\u4fbf\u5927\u5bb6\u8bba\u6587\u4e2d\u4f7f\u7528\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/pica.zhimg.com\/80\/v2-5e34107b46b071254c359c06f688fd0e_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff084\uff09\u6bcf\u5c42\u7f51\u7edc\u7684\u8f93\u51fa\u5c3a\u5bf8\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u5728\u505aCNN\u7f51\u7edc\u7ed3\u6784\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c\u968f\u7740\u5c42\u6570\u7684\u53e0\u52a0\uff0c\u6bcf\u4e2a\u7279\u5f81\u56fe\u7684\u5c3a\u5bf8\u8d8a\u6765\u8d8a\u5c0f\uff0c\u6709\u65f6\u5019\u4e00\u4e0d\u5c0f\u5fc3\u5c31\u4f1a\u4f7f\u7279\u5f81\u56fe\u7684\u5c3a\u5bf8\u53d8\u4e3a\u8d1f\u6570\uff0c\u7136\u540e\u7a0b\u5e8f\u81ea\u7136\u4f1a\u62a5\u9519\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u7b14\u8005\u7279\u5730\u52a0\u4e86\u4e00\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u8ba1\u7b97\u51fa\u6570\u636e\u7ecf\u8fc7\u6bcf\u5c42\u7f51\u7edc\u4e4b\u540e\u8f93\u51fa\u7684\u7279\u5f81\u56fe\u7684\u5c3a\u5bf8\uff0c\u5c31\u50cf\u4e0b\u56fe\u8fd9\u6837\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-0d809a7bcca1a5b3e2d79f93ca088693_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u8be5\u7ed3\u679c\u4f1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u6253\u5370\u51fa\u6765<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u5728\u5b9e\u9645\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u4f1a\u53d1\u73b0\u8fd9\u4e2a\u529f\u80fd\u975e\u5e38\u597d\u7528\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u4e0a\u8fb9\u8fd9\u4e2aMNIST\u6570\u636e\u96c6\u6d4b\u8bd5\u96c6\u6b63\u786e\u7387\u662f98.9%\uff0c\u8fd9\u4e2a\u662f\u968f\u610f\u8c03\u4e86\u8c03\u7f51\u7edc\u548c\u53c2\u6570\u7684\u7ed3\u679c\uff0c\u5982\u679c\u82b1\u65f6\u95f4\u8fdb\u4e00\u6b65\u4f18\u5316\u7f51\u7edc\uff0c\u53ef\u4ee5\u5f97\u5230\u66f4\u597d\u7684\u7ed3\u679c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-534466f8d72689e44701db1b3f7fd465\"><strong>2.scriptClassCNNs_IRIS.m\u6587\u4ef6<\/strong>\uff08\u5b8c\u6574\u7248\u4ee3\u7801\u72ec\u6709\uff09<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\">\u4f7f\u7528MNIST\u6570\u636e\u96c6\u8fdb\u884c\u9e22\u5c3e\u82b1\u6570\u636e\u96c6\u7684\u8bc6\u522b\u7684\u6848\u4f8b\uff0c\u5176\u4e2d\u6f14\u793a\u4e86FunClassCNNs\u51fd\u6570\u5bf9\u4e8e<strong>\u4e00\u7ef4\u6570\u636e<\/strong>\u7684\u5e94\u7528\u65b9\u5f0f\u793a\u8303\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/picx.zhimg.com\/80\/v2-e9fbb26f44ca7b968216c909407961e9_720w.jpg?source=d16d100b\" alt=\"\" style=\"width:630px;height:228px\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u9e22\u5c3e\u82b1<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u3002\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u5c06\u4f1a\u753b\u51fa\u5982\u4e0b\u56fe\u50cf\uff08\u8fd9\u4e9b\u56fe\u50cf\u7684\u542b\u4e49\u4e0e\u4e0a\u8fb9\u7b2c\u4e00\u4e2a\u6848\u4f8b\u76f8\u540c\uff09\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/picx.zhimg.com\/80\/v2-feca503dcec96b16f7b03a9c59f647d5_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-42021628074bfe512696f35e86ad8582\"><strong>3.scriptClassCNNs_IRIS.m\u6587\u4ef6\uff08\u5b8c\u6574\u7248\u4ee3\u7801\u72ec\u6709\uff09<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u4f7f\u7528MNIST\u6570\u636e\u96c6\u8fdb\u884cCIFAR-10\u6570\u636e\u96c6\uff0832&#215;32\u5f69\u8272\u56fe\u50cf\uff09\u7684\u8bc6\u522b\u7684\u6848\u4f8b\uff0c\u5176\u4e2d\u6f14\u793a\u4e86FunClassCNNs\u51fd\u6570\u5bf9\u4e8e<strong>\u4e09\u7ef4\u6570\u636e\uff08\u6216\u8005\u5f69\u8272\u56fe\u50cf\uff09<\/strong>\u7684\u5e94\u7528\u65b9\u5f0f\u793a\u8303\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-b0b2d462a4391f2c069b9f0dfefad65b_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">CIFAR-10\u6570\u636e\u96c6\uff0c10\u4e2a\u7c7b\u522b\u5206\u522b\u62bd\u53d6\u4e8610\u5f20\u56fe<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u3002\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u5c06\u4f1a\u753b\u51fa\u5982\u4e0b\u56fe\u50cf\uff08\u8fd9\u4e9b\u56fe\u50cf\u7684\u542b\u4e49\u4e0e\u4e0a\u8fb9\u7b2c\u4e00\u4e2a\u6848\u4f8b\u76f8\u540c\uff09\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-95ce2f061d90fe3d0ed466323188e155_720w.png?source=d16d100b\" alt=\"\"\/><\/figure><\/div>\n\n\n<p><strong>4.FunClassCNNs.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p>\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u7684\u5feb\u901f\u5b9e\u73b0\u51fd\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [accuracy,recall,precision,net,info] = FunClassCNNs(dataX,dataY,divideR,cLayer,poolingLayer,fcLayer,options,figflag)\n% \u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u7684\u5feb\u901f\u5b9e\u73b0\u51fd\u6570\n% \u8be5\u51fd\u6570\u9700\u8981\u8f93\u5165\u7684\u6570\u636e\u4e3aarray\u6570\u7ec4\u578b\uff0c\u5982\u679c\u662f\u56fe\u7247\u6570\u636e\u5219\u9700\u8981\u901a\u8fc7imread\u7b49\u65b9\u5f0f\u8fdb\u884c\u8bfb\u53d6\u8f6c\u6362\n% \u8f93\u5165\uff1a\n% dataX\uff1a\u8f93\u5165\u6570\u636e\uff0cR1*R2*R3*Q\u7684\u77e9\u9635\uff0cRn\u4e3a\u8f93\u5165\u6570\u636e\u7684\u7ef4\u5ea6\uff0cQ\u4e3a\u6279\u6b21\u6570\uff0c\u8f93\u5165\u8be5\u53d8\u91cf\u65f6\u4e00\u5b9a\u8981\u6ce8\u610f\u7ef4\u5ea6\u6b63\u786e\n% \u4f8b1\uff1a\u5bf9\u4e8e3\u901a\u9053\u7684\u56fe\u50cf\u6570\u636e\uff0c\u4f8b\u5982\u957f28\u50cf\u7d20\uff0c\u5bbd28\u50cf\u7d20\uff0c\u51715000\u7ec4\u6570\u636e\uff0c\u5219dataX\u7684\u7ef4\u5ea6\u4e3a\uff1a28*28*3*5000\n% \u4f8b2\uff1a\u5bf9\u4e8e\u4e00\u7ef4\u6570\u7ec4\uff0c\u6bcf\u7ec4\u6570\u636e\u957f\u5ea6\u4e3a20\uff0c\u51711000\u7ec4\u6570\u636e\uff0c\u5219dataX\u7684\u53ef\u4ee5\u7ef4\u5ea6\u4e3a\uff1a1*20*1*1000\u621620*1*1*1000\n% dataY\uff1a\u6807\u7b7e\u503c\uff0c\u53ef\u4ee5\u4e3a\u4e24\u79cd\u65b9\u5f0f\uff1a\n%                              \u5411\u91cf\u578b\uff1aU*Q\u7684\u77e9\u9635\uff0cU\u4e3a\u6807\u7b7e\u79cd\u7c7b\u6570\uff0cQ\u4e3a\u6279\u6b21\u6570\n%                              \u7d22\u5f15\u578b\uff1a1*Q\u7684\u77e9\u9635\uff0cQ\u4e3a\u6279\u6b21\u6570\n% divideR\uff1a\u6570\u636e\u96c6\uff08\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff09\u5212\u5206\u6bd4\u4f8b\uff0c\u5982\uff1adivideR =[0.6,0.2,0.2]\uff0c\n% \u5219\u4ee3\u886860%\u6570\u636e\u7528\u4e8e\u8bad\u7ec3\u96c6\uff0c20%\u6570\u636e\u7528\u4e8e\u9a8c\u8bc1\u96c6\uff0c20%\u6570\u636e\u7528\u4e8e\u6d4b\u8bd5\u96c6\n\n% cLayer\uff1a\u5377\u79ef\u5c42\u7ed3\u6784\uff0c\u4e3an*5\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5176\u4e2dn\u4e3a\u5377\u79ef\u5c42\u7684\u6570\u91cf\n% \u5217\u5411\u76845\u4e2a\u7ef4\u5ea6\u65f6\u5206\u522b\u4ee3\u8868\u6ee4\u6ce2\u5668\u7684\u9ad8\u3001\u6ee4\u6ce2\u5668\u7684\u5bbd\u3001\u6ee4\u6ce2\u5668\u6570\u91cf\u3001\u6b65\u957f\u3001\u586b\u5145\n% \u4f8b1\uff0ccLayer =\n% [3,16,1,1;3,32,1,0]\u65f6\uff0c\u5219\u4ee3\u8868\u6709\u4e24\u5c42\u5377\u79ef\u5c42\uff0c\u5176\u4e2d\u7b2c\u4e00\u5c42\u6ee4\u6ce2\u5668\u9ad8\u4e3a3\uff0c\u5bbd\u4e3a3\uff0c\u6ee4\u6ce2\u5668\u6570\u91cf\u4e3a16\uff0c\u6b65\u957f1\uff0c\u586b\u51451\n%                                                \u7b2c\u4e8c\u6b21\u6ee4\u6ce2\u5668\u9ad8\u4e3a3\uff0c\u5bbd\u4e3a3\uff0c\u6ee4\u6ce2\u5668\u6570\u91cf\u4e3a32\uff0c\u6b65\u957f1\uff0c\u586b\u51450\n% \u4f8b2\uff0ccLayer =\n% [3,1,16,1,1;3,1,32,1,0]\u65f6\uff0c\u5219\u4ee3\u8868\u6709\u4e24\u5c42\u5377\u79ef\u5c42\uff0c\u5176\u4e2d\u7b2c\u4e00\u5c42\u6ee4\u6ce2\u5668\u9ad8\u4e3a3\uff0c\u5bbd\u4e3a1\uff0c\u6ee4\u6ce2\u5668\u6570\u91cf\u4e3a16\uff0c\u6b65\u957f1\uff0c\u586b\u51451\n%                                                \u7b2c\u4e8c\u6b21\u6ee4\u6ce2\u5668\u9ad8\u4e3a3\uff0c\u5bbd\u4e3a1\uff0c\u6ee4\u6ce2\u5668\u6570\u91cf\u4e3a32\uff0c\u6b65\u957f1\uff0c\u586b\u51450\n\n% poolingLayer\uff1a\u6c60\u5316\u5c42\u7ed3\u6784\uff0c\u4e3a\u957f\u5ea6\u4e3an*5\u7684cell\u6570\u636e\uff0c\u5176\u4e2dn\u4e3a\u6c60\u5316\u5c42\u7684\u6570\u91cf\uff0c\u548c\u5377\u79ef\u5c42\u5c42\u6570\u76f8\u540c\u3002\n% \u5217\u5411\u7684\u4e09\u4e2a\u7ef4\u5ea6\u5206\u522b\u4ee3\u8868\uff1a1.\u6c60\u5316\u5c42\u7c7b\u578b\uff0c\u5206\u4e3a&#039;maxPooling2dLayer&#039;\u548c&#039;averagePooling2dLayer&#039;\u4e24\u79cd\uff0c\u5982\u679c\u4e0d\u7528\u6c60\u5316\u5c42\u8bbe\u7f6e\u4e3a&#039;none&#039;\n%                         2.\u6c60\u5316\u533a\u57df\u9ad8\u5ea6\u5c3a\u5bf8\n%                         3.\u6c60\u5316\u533a\u57df\u5bbd\u5ea6\u5c3a\u5bf8\n%                         4.\u6b65\u957f\n%                         5.\u586b\u5145\n% \u4f8b\u5982\uff1a\n% poolingLayer = {&#039;maxPooling2dLayer&#039;,2,2,2,1; &#039;averagePooling2dLayer&#039;,2,2,1,0};\n% \u4ee3\u8868\u7b2c\u4e00\u4e2a\u6c60\u5316\u5c42\u4e3a\u6700\u5927\u6c60\u5316\u5c42\uff0c\u5c3a\u5bf8\u4e3a2*2\uff0c\u6b65\u957f2\uff0c\u586b\u51451\uff0c\u7b2c\u4e8c\u4e2a\u6c60\u5316\u5c42\u4e3a\u5e73\u5747\u6c60\u5316\u5c42\uff0c\u5c3a\u5bf8\u4e3a2*2\uff0c\u6b65\u957f1\uff0c\u586b\u51450\n% \u6ce8\u610f\uff01\u5982\u679c\u5bf9\u5e94\u5377\u79ef\u5c42\u540e\u4e0d\u8bbe\u7f6e\u6c60\u5316\u5c42\uff0c\u8bf7\u5728\u5bf9\u5e94\u7684\u4f4d\u7f6e\u8bbe\u7f6e\u4e3a&#039;none&#039;,0,0,0,0\n% \u6bd4\u5982cLayer\u8bbe\u7f6e\u4e3a\u4e24\u5c42\u65f6\uff0c\u5982\u679c\u53ea\u60f3\u5728\u7b2c\u4e00\u5c42\u5377\u79ef\u5c42\u540e\u5bf9\u5e94\u6709\u6c60\u5316\u5c42\uff0c\u7b2c\u4e8c\u5c42\u5377\u79ef\u5c42\u540e\u65e0\u6c60\u5316\u5c42\uff0c\u90a3\u4e48\u6c60\u5316\u5c42\u5e94\u8be5\u8bbe\u7f6e\u4e3a\uff1a\n% poolingLayer = {&#039;maxPooling2dLayer&#039;,1,2,1,0;\n%                 &#039;none&#039;,0,0,0,0 }; %\u540e\u8fb9\u7684\u56db\u4e2a0\u4e3b\u8981\u662f\u5360\u4f4d\uff0c\u4e0d\u8d77\u5b9e\u9645\u4f5c\u7528\n\n% options\uff1a\u4e00\u4e9b\u4e0e\u7f51\u7edc\u8bad\u7ec3\u7b49\u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u4f7f\u7528\u7ed3\u6784\u4f53\u65b9\u5f0f\u8d4b\u503c\uff0c\u6bd4\u5982 options.MaxEpochs = 1000\uff0c\u5177\u4f53\u5305\u62ec\uff1a\n%             solverName\uff1a\u6c42\u89e3\u5668\uff0c&#039;sgdm&#039;\uff08\u9ed8\u8ba4\uff09 | &#039;rmsprop&#039; | &#039;adam&#039;\n%             MaxEpochs\uff1a\u6700\u5927\u8fed\u4ee3\u6b21\u6570\uff0c\u9ed8\u8ba430\n%             MiniBatchSize\uff1a\u6279\u5c3a\u5bf8\uff0c\u9ed8\u8ba4128\n%             GradientThreshold\uff1a\u68af\u5ea6\u6781\u9650\uff0c\u9ed8\u8ba4\u4e3aInf\n%             InitialLearnRate\uff1a\u521d\u59cb\u5316\u5b66\u4e60\u901f\u7387\uff08\u9ed8\u8ba40.005\uff09\n%             Plots\uff1a\u662f\u5426\u663e\u793a\u8bad\u7ec3\u8fc7\u7a0b\uff0c&#039;none&#039; \u4e3a\u4e0d\u663e\u793a\uff08\u9ed8\u8ba4\uff09 | &#039;training-progress&#039;\u4e3a\u663e\u793a\n%             ValidationFrequency\uff1a\u9a8c\u8bc1\u9891\u7387\uff0c\u5373\u6bcf\u95f4\u9694\u591a\u5c11\u6b21\u8fed\u4ee3\u8fdb\u884c\u4e00\u6b21\u9a8c\u8bc1\uff0c\u9ed8\u8ba450\n%             LearnRateSchedule\uff1a\u5373LearnRateSchedule\u662f\u5426\u5728\u4e00\u5b9a\u8fed\u4ee3\u6b21\u6570\u540e\u5b66\u4e60\u901f\u7387\u4e0b\u964d\uff0c LearnRateSchedule =&#039;piecewise&#039;\u4e3a\u4f7f\u7528\uff0c&#039;none&#039;\u4e3a\u4e0d\u4f7f\u7528\uff08\u9ed8\u8ba4\uff09\n%             LearnRateDropPeriod\uff1a\u5373LearnRateDropPeriod\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u65f6\u7684\u8fed\u4ee3\u6570\uff0c\u9ed8\u8ba4\u4e3a10\n%             LearnRateDropFactor\uff1a\u5373LearnRateDropFactor\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u56e0\u5b50\uff0c\u4e0b\u964d\u540e\u53d8\u4e3aLearnRateDropFactor*InitialLearnRate\uff0cLearnRateSchedule\u4e3a0\u65f6\u53ef\u4ee5\u8d4b0\uff0c\u9ed8\u8ba4\u4e3a0.1\n%             \uff08\u672a\u542f\u7528\uff09NorFlag\uff1a\u5373Normalization Flag\uff0c\u8bbe\u7f6e\u4e3a1\u65f6\u5219\u5728\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u6570\u636e\u5f52\u4e00\u5316\u548c\u53cd\u5f52\u4e00\u5316\u64cd\u4f5c\uff0c\u5426\u5219\u4e0d\u8fdb\u884c\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e3a1\n%             SeedFlag\uff1a\u968f\u673a\u79cd\u5b50\u6807\u5fd7\uff0c\u8bbe\u7f6e\u4e3a1\u65f6\u542f\u7528\u968f\u673a\u79cd\u5b50,(\u9ed8\u8ba4\u4e3a1)\n% fcLayer\uff1a\u5168\u8fde\u63a5\u5c42\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u591a\u5c42\uff0c\u5982\u679c\u8bbe\u7f6efcLayer=[]\uff0c\u5219\u5728\u7f51\u7edc\u7ed3\u6784\u4e2d\u53ea\u5305\u542b\u4e00\u4e2a\u5168\u8fde\u63a5\u5c42\uff0c\u8f93\u51fa\u7684\u7ef4\u5ea6\u4e0e\u6570\u636e\u7c7b\u522b\u76f8\u540c\u3002\n%                                  \u5982\u679c\u8bbe\u7f6efcLayer\u4e3a\u6570\u7ec4\uff0c\u5219\u4ee3\u8868\u5728\u4e0a\u8fb9\u7684\u5168\u8fde\u63a5\u5c42\u4e4b\u524d\u518d\u52a0\u5165\u5bf9\u5e94\u6570\u91cf\u7684\u5168\u8fde\u63a5\u5c42\u548cReLU\u5c42\n%                                  \u4f8b\u5982\u8bbe\u7f6efcLayer=[32,16]\uff0c\u5219\u4ee3\u8868\u5728\u5171\u6709\u4e09\u4e2a\u5168\u8fde\u63a5\u5c42\uff0c\u7b2c\u4e00\u4e2a\u662ffullyConnectedLayer(32)+ReLU\uff0c\u7b2c\u4e8c\u4e2a\u662ffullyConnectedLayer(16)+ReLU\uff0c\n%                                                           \u7b2c\u4e09\u4e2a\u662ffullyConnectedLayer(numClasses)\n% figflag\uff1a\u662f\u5426\u753b\u56fe\uff0c&#039;on&#039;\u4e3a\u753b\u56fe\uff0c&#039;off&#039;\u4e3a\u4e0d\u753b\n% \u8f93\u51fa\uff1a\n% accuracy\uff1a\u6d4b\u8bd5\u96c6\u5206\u7c7b\u6b63\u786e\u7387\n% recall\uff1a \u53ec\u56de\u7387\n% precision\uff1a \u7cbe\u786e\u7387\n% net\uff1a\u8bad\u7ec3\u597d\u7684\u7f51\u7edc\n% info\uff1a\u795e\u7ecf\u7f51\u7edc\u8bad\u7ec3\u76f8\u5173\u53c2\u6570\uff0c\u5982loss\u503c\u3001\u51c6\u786e\u5ea6\u7b49<\/code><\/pre>\n\n\n\n<p><strong>5.EvaluteClassResults.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p>\u5bf9\u5206\u7c7b\u7ed3\u679c\u8fdb\u884c\u8bc4\u4ef7\uff0c\u5305\u62ec\uff1a\u753b\u6df7\u6dc6\u77e9\u9635\u56fe\u3001recall\u3001precision\u7b49<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [recall, precision] = EvaluteClassResults(outputs,targets,figflag)\n% \u5bf9\u5206\u7c7b\u7ed3\u679c\u8fdb\u884c\u8bc4\u4ef7\uff0c\u5305\u62ec\uff1a\n% \u753b\u6df7\u6dc6\u77e9\u9635\u56fe\n% \u8ba1\u7b97 weigthed-Precision, weigthed-Recall\u548cF1-score  \u53c2\u8003 https:\/\/zhuanlan.zhihu.com\/p\/147663370?from_voters_page=true\n% \u8f93\u5165\uff1a\n% outputs\uff1a\u7ecf\u8fc7\u5206\u7c7b\u7b97\u6cd5\u5f97\u5230\u7684\u5206\u7c7b\u7ed3\u679c\uff0c\u4e00\u7ef4\u6b63\u6574\u6570\n% targets\uff1a\u76ee\u6807\u5206\u7c7b\u7ed3\u679c\uff0c\u4e00\u7ef4\u6b63\u6574\u6570\n% figflag\uff1a\u662f\u5426\u753b\u56fe\uff0c&#039;on&#039;\u4e3a\u753b\u56fe\uff0c&#039;off&#039;\u4e3a\u4e0d\u753b\n% \u8f93\u51fa\uff1a\n% recall\uff1a \u53ec\u56de\u7387\n% precision\uff1a \u7cbe\u786e\u7387<\/code><\/pre>\n\n\n\n<p><strong>6.clcEvaluteCalss.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p>\u8ba1\u7b97recall\u3001precision\u7684\u5e95\u5c42\u4ee3\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [recall, precision] = clcEvaluteCalss(outputs,targets)\n% \u8ba1\u7b97 weigthed-Precision, weigthed-Recall \u53c2\u8003 https:\/\/zhuanlan.zhihu.com\/p\/147663370?from_voters_page=true\n% \u6ce8\u610f\uff0coutputs\u548ctargets\u4e2d\u7684\u5206\u7c7b\u4e3a\u6574\u578b\uff0c\u4ece1\u6392\u5e8f\u5230n\uff0c\u4e0d\u53ef\u8df3\u6570<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-48ed3464-f92e-4cf6-bfd0-0c12c72184ad\">\u4e09\u3001\u5feb\u901f\u5f00\u59cb<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-b642d1fa-784c-47f9-b351-25d06e6327db\"><strong>1.\u8fd0\u884c\u6d4b\u8bd5\u811a\u672c<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-7d7e8701-b7ba-48dd-8cc5-85a9c8f02780\">\u5148\u5728MATLAB\u91cc\u6253\u5f00\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd0\u884c<strong>scriptClassCNNs_MNIST.m<\/strong>\u7a0b\u5e8f\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6bd5\u540e\u5982\u679c\u6ca1\u62a5\u9519\uff0c\u4e14\u6b63\u5e38\u753b\u51fa\u4e0a\u8ff0\u56fe\u50cf\uff0c\u5219\u8bf4\u660e\u8fd0\u884c\u73af\u5883\u6b63\u5e38\uff0c\u7a0b\u5e8f\u6b63\u786e\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-1acb32fd-9694-43a9-b0ab-09500bc663da\"><strong>2.\u4fee\u6539\u4eff\u771f\u6570\u636e\/\u5bfc\u5165\u6570\u636e<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-e20dcbee-602d-44e7-8d86-1178d03434be\">\u590d\u5236\u4e00\u4e2a<strong><strong>scriptClassCNNs_MNIST<\/strong>.m<\/strong>\uff08\u6216\u8005\u6839\u636e\u9700\u8981\u590d\u5236<strong>scriptClassCNNs_IRIS.m<\/strong>\u6216<strong>scriptClassCNNs_CIFAR.m<\/strong>\uff09\u7684\u6587\u4ef6\u526f\u672c\uff0c\u5728\u8fd9\u4e2a\u526f\u672c\u91cc\u505a\u5982\u4e0b\u4fee\u6539\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-f86a084a-7829-4f7a-b7f5-40d6f609fc6b\">\u6839\u636e\u4f60\u7684\u6587\u4ef6\u7c7b\u578b\u7684\u4e0d\u540c\uff08excel,txt,csv\u7b49\uff09\uff0c\u5c06\u6570\u636e\u5bfc\u5165MATLAB\u7684\u65b9\u6cd5\u6709\u6240\u4e0d\u540c\u3002\u540c\u5b66\u4eec\u53ef\u4ee5\u770b\u535a\u4e3b\u9488\u5bf9\u5e38\u7528\u6587\u4ef6\u7684\u5bfc\u5165\u65b9\u6cd5\u7684<a href=\"https:\/\/khsci.com\/docs\/index.php\/2020\/05\/17\/loaddata\/\">\u8fd9\u4e2a\u6559\u7a0b<\/a>\uff0c\u6559\u7a0b\u4e0a\u672a\u5305\u542b\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5927\u5bb6\u53ef\u4ee5\u518d\u53c2\u8003<a href=\"https:\/\/ww2.mathworks.cn\/help\/matlab\/standard-file-formats.html\">\u8fd9\u4e2a\u6587\u6863<\/a>\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u9700\u8981\u6ce8\u610f\uff0c\u5bfc\u5165\u7684\u6570\u636e\u9700\u8981\u6ee1\u8db3\u6570\u636e\u683c\u5f0f\u8981\u6c42\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">% dataX\uff1a\u8f93\u5165\u6570\u636e\uff0cR1*R2*R3*Q\u7684\u77e9\u9635\uff0cRn\u4e3a\u8f93\u5165\u6570\u636e\u7684\u7ef4\u5ea6\uff0cQ\u4e3a\u6279\u6b21\u6570\uff0c\u8f93\u5165\u8be5\u53d8\u91cf\u65f6\u4e00\u5b9a\u8981\u6ce8\u610f\u7ef4\u5ea6\u6b63\u786e\n\n% \u4f8b1\uff1a\u5bf9\u4e8e3\u901a\u9053\u7684\u56fe\u50cf\u6570\u636e\uff0c\u4f8b\u5982\u957f28\u50cf\u7d20\uff0c\u5bbd28\u50cf\u7d20\uff0c\u51715000\u7ec4\u6570\u636e\uff0c\u5219dataX\u7684\u7ef4\u5ea6\u4e3a\uff1a28*28*3*5000\n\n% \u4f8b2\uff1a\u5bf9\u4e8e\u4e00\u7ef4\u6570\u7ec4\uff0c\u6bcf\u7ec4\u6570\u636e\u957f\u5ea6\u4e3a20\uff0c\u51711000\u7ec4\u6570\u636e\uff0c\u5219dataX\u7684\u53ef\u4ee5\u7ef4\u5ea6\u4e3a\uff1a1*20*1*1000\u621620*1*1*1000\n\n% dataY\uff1a\u6807\u7b7e\u503c\uff0c\u53ef\u4ee5\u4e3a\u4e24\u79cd\u65b9\u5f0f\uff1a\n\n% \u5411\u91cf\u578b\uff1aU*Q\u7684\u77e9\u9635\uff0cU\u4e3a\u6807\u7b7e\u79cd\u7c7b\u6570\uff0cQ\u4e3a\u6279\u6b21\u6570\n\n% \u7d22\u5f15\u578b\uff1a1*Q\u7684\u77e9\u9635\uff0cQ\u4e3a\u6279\u6b21\u6570<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-0e1d9f81-694a-4099-99c6-76f0ffb120c3\"><strong>3.\u5b9e\u73b0CNN\u5206\u7c7b<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-b617207c-5f2f-4dae-b700-a149c9bdf602\">\u53c2\u7167\u811a\u672c\u6587\u4ef6\u4e2d\u7b2c\u4e8c\u6b65\uff0c\u6839\u636e\u9700\u8981\u8c03\u6574\u76f8\u5173\u53c2\u6570\uff08<strong>\u8d2d\u4e70\u5b8c\u6574\u7248\u4ee3\u7801\uff0c\u53ef\u83b7\u53d6\u8c03\u53c2\u6280\u5de7\u6559\u5b66\u89c6\u9891<\/strong>\uff09\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-193dd1d9-70c2-4c7c-b0c8-cfab03c3c3ff\">\u8fd0\u884c\u7a0b\u5e8f\u5373\u53ef\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-b71f6dd9-905a-435b-9dee-db0aafb5253c\">\u56db\u3001\u5173\u4e8e\u5b8c\u6574\u7248\u4e0e\u516c\u5f00\u7248\u4ee3\u7801<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u529f\u80fd<\/strong><\/td><td><strong>\u5b8c\u6574\u7248<\/strong><\/td><td><strong>\u516c\u5f00\u7248<\/strong><\/td><\/tr><tr><td>\u6570\u636e\u5bfc\u5165\u3001\u53c2\u6570\u8bbe\u7f6e\u3001\u5b9e\u73b0\u5206\u7c7b<\/td><td>\u221a<\/td><td>\u221a<\/td><\/tr><tr><td>\u8f6f\u4ef6\u5168\u90e8\u6e90\u7801\uff08\u51fd\u6570m\u6587\u4ef6\uff09<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u6df7\u6dc6\u77e9\u9635\u65e0\u6c34\u5370<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u9002\u7528\u4e8e\u7684\u6570\u636e\u7c7b\u578b<\/td><td>\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4<\/td><td>\u4ec5\u4e8c\u7ef4<\/td><\/tr><tr><td>\u6700\u5927\u8fed\u4ee3\u6b21\u6570<\/td><td>\u4e0d\u9650\u5236<\/td><td>10<\/td><\/tr><tr><td>\u5bfc\u51fa\u9884\u6d4b\u7ed3\u679c\u3001\u8bad\u7ec3\u597d\u7684\u7f51\u7edc\u6a21\u578b\u3001\u795e\u7ecf\u7f51\u7edc\u8bad\u7ec3\u76f8\u5173\u53c2\u6570\uff08\u5982loss\u503c\u3001\u51c6\u786e\u5ea6\uff09\u7b49<\/td><td>\u53ef\u5bfc\u51fa<\/td><td>\u4e0d\u53ef\u5bfc\u51fa<\/td><\/tr><tr><td>CNN\u7f51\u7edc\u6570\u636e\u9884\u5904\u7406\u3001\u8c03\u53c2\u6280\u5de7\u89c6\u9891\u6559\u7a0b<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-30ec1c91-2cc7-4e0c-b2c1-8f5de91cddce\">\u4e94\u3001\u83b7\u53d6\u516c\u5f00\u7248\u7a0b\u5e8f\uff08\u9700\u4f7f\u7528\u7535\u8111\u6d4f\u89c8\u5668\u6253\u5f00\uff09<\/h4>\n\n\n\n<div class=\"wpfd-single-file\">\n\n    <div class=\"wpfd-single-file--details wpfd-file-content\">\n                <h3 class=\"wpfd-file-content--title\">CNNs\u5206\u7c7b\u516c\u5f00\u7248\u4ee3\u7801<\/h3>\n        <div class=\"wpfd-file-content--meta\">\n                    <div>\u6587\u4ef6\u5c3a\u5bf8: 2.72 MB<\/div>\n                    <div>\u66f4\u65b0: 27-08-2023<\/div>\n        <\/div>\n    <\/div>\n    <div class=\"wpfd-single-file--buttons\">\n                <a href=\"https:\/\/www.khsci.com\/docs\/index.php\/download\/6\/%e6%96%b0%e5%88%86%e7%b1%bb\/2946\/cnns%e5%88%86%e7%b1%bb%e5%85%ac%e5%bc%80%e7%89%88%e4%bb%a3%e7%a0%81.zip\"  data-id=\"2946\" title=\"CNNs\u5206\u7c7b\u516c\u5f00\u7248\u4ee3\u7801\" class=\"noLightbox wpfd_downloadlink wpfd-single-file-button wpfd-button-download\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"36\" height=\"36\" viewBox=\"0 0 400 400\"><g fill=\"#ffffff\"><path d=\"M200 400H26c-18 0-26-9-26-27v-73c0-16 9-25 24-25h105a14 14 0 018 4l28 28c21 21 48 21 69 0l28-29a13 13 0 018-3h106c14 0 24 9 24 23v79c0 14-10 23-25 23H200zm155-63c-9 0-17 8-17 16a15 15 0 0015 16c9 0 17-7 17-16a16 16 0 00-15-16zm-47 16c0-9-7-16-16-16a16 16 0 00-15 16c0 9 6 16 15 16s16-7 16-16zM245 127h55a56 56 0 017 0c7 0 11 4 13 10 3 6 1 11-3 16l-43 45-62 63c-8 9-17 9-25 1L83 154c-5-5-6-11-4-18 3-7 9-9 15-9h61v-9-99c0-14 5-19 17-19h55c13 0 18 5 18 19v99z\"\/><\/g><\/svg>\n                    <span>\u4e0b\u8f7d<\/span>\n                <\/a>\n    <\/div>\n<\/div>\n\n\n\n\n<p class=\"is-style-iw-2em has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-efd824daafcda3bb655ee46704e65423\" id=\"block-c03fc622-1986-4976-acfd-219cf79ad4aa\"><strong>\u6ce8\uff1a\u516c\u5f00\u7248\u4ee3\u7801\u9700\u4f7f\u7528MATLAB2022a\u53ca\u4ee5\u4e0a\u7248\u672c<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-be9fbd59-b6e4-422c-be8e-fde41423197b\">\u516d\u3001\u83b7\u53d6\u5b8c\u6574\u7248\u7a0b\u5e8f\uff08\u4f7f\u7528\u7535\u8111\u6d4f\u89c8\u5668\u6216\u8005\u624b\u673a\u6d4f\u89c8\u5668\u6253\u5f00\uff09<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-07fc515f-ed21-4711-a82c-601c7201a761\"><strong>\u83b7\u53d6\u901a\u9053\u4e00\uff08\u6dd8\u5b9d\uff09\uff1a<\/strong><a href=\"https:\/\/item.taobao.com\/item.htm?spm=a21n57.1.0.0.7860523cf0gpQi&amp;id=735941681820&amp;ns=1&amp;abbucket=5#detail\">\u70b9\u51fb\u6b64\u5904\u83b7\u53d6\u5b8c\u6574\u7248\u7a0b\u5e8f<\/a><\/p>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-4c022a67-4070-4311-b5bb-9def327cc120\"><strong>\u83b7\u53d6\u901a\u9053\u4e8c\uff08\u672c\u9875\u9762\uff09\uff1a<\/strong>\u70b9\u51fb\u4e0b\u9762\u201c\u7acb\u5373\u652f\u4ed8\u201d\u6309\u94ae\uff0c\u4ed8\u6b3e\u540e\u83b7\u53d6\u5b8c\u6574\u7248\u4ee3\u7801\u4e0b\u8f7d\u94fe\u63a5\u548c\u552e\u540e\u8054\u7cfb\u65b9\u5f0f~\u672c\u901a\u9053\u5904\u4e8e\u6d4b\u8bd5\u9636\u6bb5\uff0c\u4f7f\u7528\u8be5\u901a\u9053\u53ef\u4ee5\u989d\u5916\u4f18\u60e0\uff08\u4ec5\u970087\u5143\uff09\u3002<strong>\u4ed8\u6b3e\u5b8c\u6210\u540e\u5237\u65b0\u4e00\u4e0b\u672c\u9875\u9762\u5373\u53ef\u770b\u5230\u4e0b\u8f7d\u94fe\u63a5\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em has-vivid-red-color has-text-color has-link-color wp-elements-b379ef3e58b92627474e63bca19c09d7\" id=\"block-7665696e-8d92-471d-ba53-c804cb372e35\">\uff08\u6ce8\u610f\u652f\u4ed8\u8df3\u8f6c\u5931\u8d25\u7684\u8bdd\uff0c\u8bf7\u4f7f\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u672c\u9875\u9762\uff09<\/p>\n\n\n<p><p><div class=\"erphp-wppay\">\n\t\t\t\t\u60a8\u9700\u8981\u5148\u652f\u4ed8 <b>87\u5143<\/b> \u624d\u80fd\u67e5\u770b\u6b64\u5904\u5185\u5bb9\uff01<a href=\"javascript:;\" class=\"erphp-wppay-loader\" data-post=\"2845\">\u7acb\u5373\u652f\u4ed8<\/a>\n\t\t\t<\/div><\/p><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-01473aa6-af8d-42d7-a315-6b745e3a6e34\">\u4e03\u3001\u5b8c\u6574\u7248\u4ee3\u7801\u91cd\u8981\u66f4\u65b0<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\" id=\"block-0f078438-0419-47ee-a693-7a87cfd957ae\">20230827 \u5b8c\u6210\u521d\u7248\u4ee3\u7801<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"block-8c64eadd-fe11-4b84-87ef-da1e67e25219\">\u516b\u3001\u5e38\u89c1\u95ee\u9898<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\">\u65e0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>-\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff0c\u4e14\u6709\u6f14\u793a\u6848\u4f8b\u3002 -\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784 -\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2938,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863<\/title>\n<meta name=\"description\" content=\"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"og:description\" content=\"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\" \/>\n<meta property=\"og:site_name\" content=\"\u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T15:12:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-01T14:44:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/08\/image-4.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"345\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"kuohao\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"kuohao\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\"},\"author\":{\"name\":\"kuohao\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"headline\":\"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801\",\"datePublished\":\"2023-07-28T15:12:28+00:00\",\"dateModified\":\"2025-01-01T14:44:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\"},\"wordCount\":88,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\",\"url\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\",\"name\":\"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#website\"},\"datePublished\":\"2023-07-28T15:12:28+00:00\",\"dateModified\":\"2025-01-01T14:44:30+00:00\",\"description\":\"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.khsci.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#website\",\"url\":\"https:\/\/www.khsci.com\/docs\/\",\"name\":\"\u5de5\u5177\u7bb1\u6587\u6863\",\"description\":\"khToolbox\",\"publisher\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.khsci.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\",\"name\":\"kuohao\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2022\/11\/logo-1.png\",\"contentUrl\":\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2022\/11\/logo-1.png\",\"width\":255,\"height\":97,\"caption\":\"kuohao\"},\"logo\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.khsci.com\/docs\/index.php\/author\/kuohao\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863","description":"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863","og_description":"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002","og_url":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/","og_site_name":"\u5de5\u5177\u7bb1\u6587\u6863","article_published_time":"2023-07-28T15:12:28+00:00","article_modified_time":"2025-01-01T14:44:30+00:00","og_image":[{"width":720,"height":345,"url":"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/08\/image-4.png","type":"image\/png"}],"author":"kuohao","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"kuohao","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#article","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/"},"author":{"name":"kuohao","@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"headline":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801","datePublished":"2023-07-28T15:12:28+00:00","dateModified":"2025-01-01T14:44:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/"},"wordCount":88,"commentCount":0,"publisher":{"@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/","url":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/","name":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/#website"},"datePublished":"2023-07-28T15:12:28+00:00","dateModified":"2025-01-01T14:44:30+00:00","description":"\u5feb\u901f\u5b9e\u73b0CNN\u5206\u7c7b\u7684MATLAB\u4ee3\u7801\u3002\u652f\u6301\u4e00\u7ef4\u3001\u4e8c\u7ef4\u3001\u4e09\u7ef4\u6570\u636e\uff1b\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u795e\u7ecf\u7f51\u7edc\u5377\u79ef\u5c42\u7ed3\u6784\u3001\u6c60\u5316\u5c42\u7ed3\u6784\uff1b\u53ef\u4ee5\u5feb\u901f\u5212\u5206\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u540e\u7ed8\u5236\u51fa\u6d4b\u8bd5\u96c6\u6df7\u6dc6\u77e9\u9635\uff1b\u591a\u79cd\u8bad\u7ec3\u53c2\u6570\u53ef\u8bbe\u7f6e\uff0c\u5305\u62ec\u6c42\u89e3\u5668\u3001\u8fed\u4ee3\u6b21\u6570\u3001\u521d\u59cb\u5b66\u4e60\u7387\u7b49\u7b49\uff1b\u53ef\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u4fdd\u6301\u4e00\u81f4\uff1b\u9700\u8981\u4f60\u505a\u7684\u57fa\u672c\u53ea\u6709\u5bfc\u5165\u6570\u636e\u548c\u8c03\u53c2\u3002","breadcrumb":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/07\/28\/cnnclass\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.khsci.com\/docs\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528CNN\u8fdb\u884c\u6a21\u5f0f\u8bc6\u522b\uff08\u5206\u7c7b\uff09\u4ee3\u7801"}]},{"@type":"WebSite","@id":"https:\/\/www.khsci.com\/docs\/#website","url":"https:\/\/www.khsci.com\/docs\/","name":"\u5de5\u5177\u7bb1\u6587\u6863","description":"khToolbox","publisher":{"@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.khsci.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5","name":"kuohao","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2022\/11\/logo-1.png","contentUrl":"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2022\/11\/logo-1.png","width":255,"height":97,"caption":"kuohao"},"logo":{"@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/image\/"},"url":"https:\/\/www.khsci.com\/docs\/index.php\/author\/kuohao\/"}]}},"_links":{"self":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/2845"}],"collection":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/comments?post=2845"}],"version-history":[{"count":44,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/2845\/revisions"}],"predecessor-version":[{"id":3757,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/2845\/revisions\/3757"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media\/2938"}],"wp:attachment":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media?parent=2845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/categories?post=2845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/tags?post=2845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}