{"id":720,"date":"2020-05-25T17:55:18","date_gmt":"2020-05-25T09:55:18","guid":{"rendered":"http:\/\/www.mustenaka.cn\/?p=720"},"modified":"2020-05-25T17:56:09","modified_gmt":"2020-05-25T09:56:09","slug":"cnn_network","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2020\/05\/25\/cnn_network\/","title":{"rendered":"CNN_network"},"content":{"rendered":"<h3>\u4e00.CNN\u7f51\u7edc\u5c42\u7ea7\u7ed3\u6784<\/h3>\n<p>CNN\u7f51\u7edc\u4e00\u5171\u67095\u4e2a\u5c42\u7ea7\u7ed3\u6784\uff1a<\/p>\n<ul>\n<li>\u8f93\u5165\u5c42<\/li>\n<li>\u5377\u79ef\u5c42<\/li>\n<li>\u6fc0\u6d3b\u5c42<\/li>\n<li>\u6c60\u5316\u5c42<\/li>\n<li>\u5168\u8fde\u63a5FC\u5c42<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u5377\u79ef\u5c42<br \/>\n\u5c40\u90e8\u611f\u77e5\uff1a\u4eba\u7684\u5927\u8111\u8bc6\u522b\u56fe\u7247\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5e76\u4e0d\u662f\u4e00\u4e0b\u5b50\u6574\u5f20\u56fe\u540c\u65f6\u8bc6\u522b\uff0c\u800c\u662f\u5bf9\u4e8e\u56fe\u7247\u4e2d\u7684\u6bcf\u4e00\u4e2a\u7279\u5f81\u9996\u5148\u5c40\u90e8\u611f\u77e5\uff0c\u7136\u540e\u66f4\u9ad8\u5c42\u6b21\u5bf9\u5c40\u90e8\u8fdb\u884c\u7efc\u5408\u64cd\u4f5c\uff0c\u4ece\u800c\u5f97\u5230\u5168\u5c40\u4fe1\u606f\u3002<br \/>\n\u5377\u79ef\u5c42\u4f7f\u7528\u201c**\u5377\u79ef\u6838\u201d**\u8fdb\u884c\u5c40\u90e8\u611f\u77e5\u3002\u4e3e\u4e2a\u4f8b\u5b50\u6765\u8bb2\uff0c\u4e00\u4e2a32\u00d732\u00d73\u7684RGB\u56fe\u7ecf\u8fc7\u4e00\u5c425\u00d75\u00d73\u7684\u5377\u79ef\u540e\u53d8\u6210\u4e86\u4e00\u4e2a28\u00d728\u00d71\u7684\u7279\u5f81\u56fe\uff0c\u90a3\u4e48\u8f93\u5165\u5c42\u5171\u670932\u00d732\u00d73=3072\u4e2a\u795e\u7ecf\u5143\uff0c\u7b2c\u4e00\u5c42\u9690\u5c42\u4f1a\u670928\u00d728=784\u4e2a\u795e\u7ecf\u5143\uff0c\u8fd9784\u4e2a\u795e\u7ecf\u5143\u5bf9\u539f\u8f93\u5165\u5c42\u7684\u795e\u7ecf\u5143\u53ea\u662f\u5c40\u90e8\u8fde\u63a5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p>\u901a\u8fc7\u5c40\u90e8\u611f\u77e5\u7279\u6027\uff0c\u5927\u5927\u51cf\u5c11\u4e86\u6a21\u578b\u7684\u8ba1\u7b97\u53c2\u6570\u3002\u4f46\u662f\u4ec5\u4ec5\u8fd9\u6837\u8fd8\u662f\u4f9d\u7136\u4f1a\u6709\u5f88\u591a\u53c2\u6570\u3002\u8fd9\u5c31\u6709\u4e86\u6743\u503c\u5171\u4eab\u673a\u5236\uff1a<br \/>\n\u5728\u4e0a\u9762\u7684\u5c40\u90e8\u611f\u77e5\u4e2d\uff0c\u5047\u8bbe\u67091m\u7684\u9690\u5c42\u795e\u7ecf\u5143\uff0c\u6bcf\u4e2a\u795e\u7ecf\u51431010\u7684\u8fde\u63a5\uff0c\u8fd9\u6837\u5c31\u4f1a\u67091m10*10\u4e2a\u53c2\u6570\u3002\u5b9e\u9645\u4e0a\uff0c\u5bf9\u4e8e\u6bcf\u4e00\u5c42\u6765\u8bb2\uff0c\u6240\u6709\u795e\u7ecf\u5143\u5bf9\u5e94\u7684\u6743\u503c\u5e94\u8be5\u662f\u76f8\u7b49\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u7b2c\u4e00\u4e2a\u795e\u7ecf\u5143\u7684\u53c2\u6570\u5411\u91cf\u4e3a[w1,w2,\u2026,w100]\uff0c\u90a3\u4e48\u5176\u4ed6\u540c\u5c42\u7684\u795e\u7ecf\u5143\u4e5f\u662f[w1,w2,\u2026,w100]\uff0c\u8fd9\u5c31\u662f\u6743\u503c\u5171\u4eab\u3002<br \/>\n\u4e3a\u4ec0\u4e48\u9700\u8981\u6743\u503c\u5171\u4eab\u5462\uff1f\u540c\u4e00\u5c42\u4e0b\u7684\u795e\u7ecf\u5143\u7684\u8fde\u63a5\u53c2\u6570\u53ea\u4e0e\u7279\u5f81\u63d0\u53d6\u7684\u6709\u5173\uff0c\u800c\u4e0e\u5177\u4f53\u7684\u4f4d\u7f6e\u65e0\u5173\uff0c\u56e0\u6b64\u53ef\u4ee5\u4fdd\u8bc1\u540c\u4e00\u5c42\u4e2d\u6240\u6709\u4f4d\u7f6e\u7684\u8fde\u63a5\u662f\u6743\u503c\u5171\u4eab\u7684\u3002\u4f8b\u5982\uff1a\u7b2c\u4e00\u5c42\u9690\u5c42\u662f\u4e00\u822c\u7528\u8fb9\u7f18\u68c0\u6d4b\uff0c\u7b2c\u4e8c\u5c42\u662f\u5bf9\u7b2c\u4e00\u5c42\u5b66\u5230\u7684\u8fb9\u7f18\u66f2\u7ebf\u7ec4\u5408\u5f97\u5230\u4e00\u4e9b\u7279\u5f81\uff0c\u6bd4\u5982\uff1a\u89d2\u5ea6\u3001\u7ebf\u5f62\u7b49\uff1b\u7b2c\u4e09\u5c42\u4f1a\u5b66\u5230\u66f4\u52a0\u590d\u6742\u7684\u7279\u5f81\uff0c\u6bd4\u5982\uff1a\u773c\u775b\u3001\u7709\u6bdb\u7b49\u3002\u5bf9\u4e8e\u540c\u4e00\u5c42\u6765\u8bf4\uff0c\u4ed6\u4eec\u63d0\u53d6\u7279\u5f81\u7684\u65b9\u5f0f\u662f\u4e00\u6837\u7684\uff0c\u7b2c\u4e09\u5c42\u7684\u795e\u7ecf\u5143\u90fd\u662f\u7528\u6765\u63d0\u53d6\u201c\u773c\u775b\u201d\u7684\u7279\u5f81\uff0c\u56e0\u6b64\uff0c\u9700\u8981\u8ba1\u7b97\u7684\u53c2\u6570\u662f\u4e00\u6837\u7684\u3002<\/p>\n<p>\u6fc0\u52b1\u5c42<br \/>\n\u6240\u8c13\u6fc0\u52b1\uff0c\u5b9e\u9645\u4e0a\u662f\u5bf9\u5377\u79ef\u5c42\u7684\u8f93\u51fa\u7ed3\u679c\u505a\u4e00\u6b21\u975e\u7ebf\u6027\u6620\u5c04\u3002<br \/>\n\u5982\u679c\u4e0d\u7528\u6fc0\u52b1\u51fd\u6570\uff08\u5176\u5b9e\u5c31\u76f8\u5f53\u4e8e\u6fc0\u52b1\u51fd\u6570\u662ff(x)=x\uff09\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e00\u5c42\u7684\u8f93\u51fa\u90fd\u662f\u4e0a\u4e00\u5c42\u8f93\u5165\u7684\u7ebf\u6027\u51fd\u6570\u3002\u5bb9\u6613\u5f97\u51fa\uff0c\u65e0\u8bba\u6709\u591a\u5c11\u795e\u7ecf\u7f51\u7edc\u5c42\uff0c\u8f93\u51fa\u90fd\u662f\u8f93\u5165\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u4e0e\u6ca1\u6709\u9690\u5c42\u7684\u6548\u679c\u662f\u4e00\u6837\u7684\uff0c\u8fd9\u5c31\u662f\u6700\u539f\u59cb\u7684\u611f\u77e5\u673a\u4e86\u3002<br \/>\n\u5e38\u7528\u7684\u6fc0\u52b1\u51fd\u6570\u6709\uff1a<\/p>\n<blockquote><p>Sigmoid\u51fd\u6570<br \/>\nTanh\u51fd\u6570<br \/>\n<span style=\"color: #f20079;\">ReLU<\/span><br \/>\nLeaky ReLU<br \/>\nELU<br \/>\nMaxout<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p>\u6fc0\u52b1\u5c42\u5efa\u8bae\uff1a\u9996\u5148ReLU\uff0c\u56e0\u4e3a\u8fed\u4ee3\u901f\u5ea6\u5feb\uff0c\u4f46\u662f\u6709\u53ef\u80fd\u6548\u679c\u4e0d\u52a0\u3002\u5982\u679cReLU\u5931\u6548\u7684\u60c5\u51b5\u4e0b\uff0c\u8003\u8651\u4f7f\u7528Leaky ReLU\u6216\u8005Maxout\uff0c\u6b64\u65f6\u4e00\u822c\u60c5\u51b5\u90fd\u53ef\u4ee5\u89e3\u51b3\u3002Tanh\u51fd\u6570\u5728\u6587\u672c\u548c\u97f3\u9891\u5904\u7406\u6709\u6bd4\u8f83\u597d\u7684\u6548\u679c\u3002<br \/>\n\u6c60\u5316\u5c42<br \/>\n\u6c60\u5316\uff08Pooling\uff09\uff1a\u4e5f\u79f0\u4e3a\u6b20\u91c7\u6837\u6216\u4e0b\u91c7\u6837\u3002\u4e3b\u8981\u7528\u4e8e\u7279\u5f81\u964d\u7ef4\uff0c\u538b\u7f29\u6570\u636e\u548c\u53c2\u6570\u7684\u6570\u91cf\uff0c\u51cf\u5c0f\u8fc7\u62df\u5408\uff0c\u540c\u65f6\u63d0\u9ad8\u6a21\u578b\u7684\u5bb9\u9519\u6027\u3002\u4e3b\u8981\u6709\uff1a<\/p>\n<p>Max Pooling\uff1a\u6700\u5927\u6c60\u5316<br \/>\nAverage Pooling\uff1a\u5e73\u5747\u6c60\u5316<\/p>\n<p>\u901a\u8fc7\u6c60\u5316\u5c42\uff0c\u4f7f\u5f97\u539f\u672c44\u7684\u7279\u5f81\u56fe\u538b\u7f29\u6210\u4e8622\uff0c\u4ece\u800c\u964d\u4f4e\u4e86\u7279\u5f81\u7ef4\u5ea6\u3002<\/p>\n<p>\u867d\u7136\u4eba\u4e0d\u592a\u5bb9\u6613\u5206\u8fa8\u51fa\u6c60\u5316\u540e\u7684\u7279\u5f81\u56fe\uff0c\u4f46\u662f\u6ca1\u5173\u7cfb\uff0c\u673a\u5668\u8fd8\u662f\u53ef\u4ee5\u8bc6\u522b\u7684\u3002<\/p>\n<p>\u8f93\u51fa\u5c42<br \/>\n\u7ecf\u8fc7\u524d\u9762\u82e5\u5e72\u6b21\u5377\u79ef+\u6fc0\u52b1+\u6c60\u5316\u540e\uff0c\u7ec8\u4e8e\u6765\u5230\u4e86\u8f93\u51fa\u5c42\uff0c\u6a21\u578b\u4f1a\u5c06\u5b66\u5230\u7684\u4e00\u4e2a\u9ad8\u8d28\u91cf\u7684\u7279\u5f81\u56fe\u7247\u5168\u8fde\u63a5\u5c42\u3002\u5176\u5b9e\u5728\u5168\u8fde\u63a5\u5c42\u4e4b\u524d\uff0c\u5982\u679c\u795e\u7ecf\u5143\u6570\u76ee\u8fc7\u5927\uff0c\u5b66\u4e60\u80fd\u529b\u5f3a\uff0c\u6709\u53ef\u80fd\u51fa\u73b0\u8fc7\u62df\u5408\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u5f15\u5165dropout\u64cd\u4f5c\uff0c\u6765\u968f\u673a\u5220\u9664\u795e\u7ecf\u7f51\u7edc\u4e2d\u7684\u90e8\u5206\u795e\u7ecf\u5143\uff0c\u6765\u89e3\u51b3\u6b64\u95ee\u9898\u3002\u8fd8\u53ef\u4ee5\u8fdb\u884c\u5c40\u90e8\u5f52\u4e00\u5316\uff08LRN\uff09\u3001\u6570\u636e\u589e\u5f3a\u7b49\u64cd\u4f5c\uff0c\u6765\u589e\u52a0\u9c81\u68d2\u6027\uff0c\u8fd9\u91cc\u4e0d\u505a\u4ecb\u7ecd\u3002<br \/>\n\u5f53\u6765\u5230\u4e86\u5168\u8fde\u63a5\u5c42\u4e4b\u540e\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u7b80\u5355\u7684\u591a\u5206\u7c7b\u795e\u7ecf\u7f51\u7edc\uff08\u5982\uff1aBP\u795e\u7ecf\u7f51\u7edc\uff09\uff0c\u901a\u8fc7softmax\u51fd\u6570\u5f97\u5230\u6700\u7ec8\u7684\u8f93\u51fa\u3002\u6574\u4e2a\u6a21\u578b\u8bad\u7ec3\u5b8c\u6bd5\u3002<br \/>\n\u4e0b\u56fe\u5c55\u793a\u4e86\u4e00\u4e2a\u542b\u6709\u591a\u4e2a\u5377\u79ef\u5c42+\u6fc0\u52b1\u5c42+\u6c60\u5316\u5c42\u7684\u8fc7\u7a0b\uff1a<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00.CNN\u7f51\u7edc\u5c42\u7ea7\u7ed3\u6784 CNN\u7f51\u7edc\u4e00\u5171\u67095\u4e2a\u5c42\u7ea7\u7ed3\u6784\uff1a \u8f93\u5165\u5c42 \u5377\u79ef\u5c42 \u6fc0\u6d3b\u5c42 \u6c60\u5316\u5c42 \u5168\u8fde\u63a5FC\u5c42 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,9],"tags":[77,31,11],"class_list":["post-720","post","type-post","status-publish","format-standard","hentry","category-python","category-pytorch","tag-cnn","tag-python","tag-pytorch"],"views":1415,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=720"}],"version-history":[{"count":2,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/720\/revisions"}],"predecessor-version":[{"id":722,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/720\/revisions\/722"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}