{"id":2171,"date":"2024-12-24T17:16:34","date_gmt":"2024-12-24T09:16:34","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=2171"},"modified":"2024-12-24T17:16:34","modified_gmt":"2024-12-24T09:16:34","slug":"relu%e6%bf%80%e6%b4%bb%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2024\/12\/24\/relu%e6%bf%80%e6%b4%bb%e5%87%bd%e6%95%b0\/","title":{"rendered":"ReLU\u6fc0\u6d3b\u51fd\u6570"},"content":{"rendered":"\n<p><strong>\u6fc0\u6d3b\u51fd\u6570\u5728\u6df1\u5ea6\u5b66\u4e60\u4e2d\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\uff0c\u5b83\u4eec\u5c06\u795e\u7ecf\u5143\u7684\u8f93\u5165\u6620\u5c04\u5230\u8f93\u51fa\uff0c\u5f15\u5165\u975e\u7ebf\u6027\u56e0\u7d20\uff0c\u4f7f\u5f97\u795e\u7ecf\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u548c\u8868\u793a\u590d\u6742\u7684\u6a21\u5f0f\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u6fc0\u6d3b\u51fd\u6570\u53ca\u5176\u7279\u70b9<\/strong>\u200c<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>ReLU\uff08Rectified Linear Unit\uff0c\u4fee\u6b63\u7ebf\u6027\u5355\u5143\uff09\u662f\u4e00\u79cd\u5728\u6df1\u5ea6\u5b66\u4e60\u4e2d\u5e7f\u6cdb\u4f7f\u7528\u7684\u6fc0\u6d3b\u51fd\u6570\u3002\u5176\u6570\u5b66\u5b9a\u4e49\u4e3a\uff1a<\/p>\n\n\n\n<p>ReLU(x)=max\u2061(0,x)ReLU(<em>x<\/em>)=max(0,<em>x<\/em>)<\/p>\n\n\n\n<p>\u8fd9\u610f\u5473\u7740\u5f53\u8f93\u5165&nbsp;x<em>x<\/em>&nbsp;\u5927\u4e8e\u96f6\u65f6\uff0cReLU \u51fd\u6570\u7684\u8f93\u51fa\u7b49\u4e8e\u8f93\u5165\u503c\u672c\u8eab\uff1b\u5f53\u8f93\u5165&nbsp;x<em>x<\/em>&nbsp;\u5c0f\u4e8e\u6216\u7b49\u4e8e\u96f6\u65f6\uff0c\u8f93\u51fa\u4e3a\u96f6<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ReLU \u7684\u4f18\u70b9\uff1a<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u907f\u514d\u68af\u5ea6\u6d88\u5931\u95ee\u9898<\/strong>\uff1a\u7531\u4e8e\u5728\u6b63\u6570\u533a\u57df\u7684\u5bfc\u6570\u4e3a1\uff0cReLU \u51fd\u6570\u80fd\u591f\u6709\u6548\u7f13\u89e3\u68af\u5ea6\u6d88\u5931\u95ee\u9898\uff0c\u4ece\u800c\u5e2e\u52a9\u795e\u7ecf\u7f51\u7edc\u66f4\u5feb\u5730\u6536\u655b\u3002<\/li>\n\n\n\n<li><strong>\u8ba1\u7b97\u6548\u7387\u9ad8<\/strong>\uff1aReLU \u7684\u8ba1\u7b97\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u6700\u5927\u503c\u64cd\u4f5c\uff0c\u56e0\u6b64\u5728\u6df1\u5c42\u7f51\u7edc\u4e2d\u5177\u6709\u8f83\u9ad8\u7684\u8ba1\u7b97\u6548\u7387<\/li>\n\n\n\n<li><strong>\u7b80\u5355\u6613\u5b9e\u73b0<\/strong>\uff1aReLU \u51fd\u6570\u7684\u5b9e\u73b0\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u53ea\u9700\u8981\u6bd4\u8f83\u8f93\u5165\u503c\u548c\u96f6\u7684\u5927\u5c0f\uff0c\u7136\u540e\u53d6\u8f83\u5927\u503c\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">ReLU \u7684\u7f3a\u70b9\uff1a<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u795e\u7ecf\u5143\u6b7b\u4ea1\u95ee\u9898<\/strong>\uff1a\u5f53\u8f93\u5165\u4e3a\u8d1f\u6570\u65f6\uff0cReLU \u7684\u8f93\u51fa\u4e3a\u96f6\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u90e8\u5206\u795e\u7ecf\u5143\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u201c\u6b7b\u4ea1\u201d\uff0c\u5373\u8fd9\u4e9b\u795e\u7ecf\u5143\u7684\u8f93\u51fa\u6c38\u8fdc\u4e3a\u96f6\uff0c\u65e0\u6cd5\u518d\u5bf9\u4efb\u4f55\u6570\u636e\u505a\u51fa\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong>\u975e\u96f6\u5747\u503c\u95ee\u9898<\/strong>\uff1a\u7531\u4e8e\u8d1f\u6570\u90e8\u5206\u88ab\u7f6e\u4e3a\u96f6\uff0cReLU \u7684\u8f93\u51fa\u901a\u5e38\u4e0d\u5177\u6709\u96f6\u5747\u503c\uff0c\u8fd9\u53ef\u80fd\u5f71\u54cd\u540e\u7eed\u5c42\u7684\u8bad\u7ec3\u6548\u679c<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">ReLU \u7684\u53d8\u79cd\uff1a<\/h3>\n\n\n\n<p>\u4e3a\u4e86\u514b\u670d ReLU \u7684\u7f3a\u70b9\uff0c\u7814\u7a76\u8005\u63d0\u51fa\u4e86\u591a\u79cd\u53d8\u79cd\u6fc0\u6d3b\u51fd\u6570\uff0c\u5982\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Leaky ReLU<\/strong>\uff1a\u5728\u8d1f\u6570\u533a\u57df\u5f15\u5165\u4e00\u4e2a\u5c0f\u7684\u7ebf\u6027\u5206\u91cf\uff0c\u4ee5\u907f\u514d\u795e\u7ecf\u5143\u6b7b\u4ea1\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>Parametric ReLU (PReLU)<\/strong>\u00a0\uff1a\u5728\u8d1f\u6570\u533a\u57df\u7684\u659c\u7387\u53ef\u4ee5\u4f5c\u4e3a\u53c2\u6570\u8fdb\u884c\u8c03\u6574\uff0c\u8fdb\u4e00\u6b65\u4f18\u5316\u7f51\u7edc\u6027\u80fd\u3002<\/li>\n\n\n\n<li><strong>ELU (Exponential Linear Unit)<\/strong>\u00a0\uff1a\u5728\u8d1f\u6570\u533a\u57df\u5f15\u5165\u6307\u6570\u51fd\u6570\uff0c\u4f7f\u5f97\u8f93\u51fa\u66f4\u63a5\u8fd1\u96f6\u5747\u503c\uff0c\u5e76\u52a0\u901f\u5b66\u4e60\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e94\u7528\u573a\u666f\uff1a<\/h3>\n\n\n\n<p>ReLU \u53ca\u5176\u53d8\u79cd\u5728\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08CNN\uff09\u548c\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u5c24\u5176\u662f\u5728\u56fe\u50cf\u8bc6\u522b\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u7b49\u9886\u57df\u8868\u73b0\u4f18\u5f02<\/p>\n\n\n\n<p>ReLU \u662f\u4e00\u79cd\u9ad8\u6548\u4e14\u5e38\u7528\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u5c3d\u7ba1\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u4f46\u5176\u4f18\u70b9\u4f7f\u5176\u6210\u4e3a\u6df1\u5ea6\u5b66\u4e60\u4e2d\u7684\u9996\u9009\u6fc0\u6d3b\u51fd\u6570\u4e4b\u4e00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6fc0\u6d3b\u51fd\u6570\u5728\u6df1\u5ea6\u5b66\u4e60\u4e2d\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\uff0c\u5b83\u4eec\u5c06\u795e\u7ecf\u5143\u7684\u8f93\u5165\u6620\u5c04\u5230\u8f93\u51fa\uff0c\u5f15\u5165\u975e\u7ebf\u6027\u56e0\u7d20\uff0c\u4f7f\u5f97\u795e\u7ecf\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u548c\u8868 [&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],"tags":[],"class_list":["post-2171","post","type-post","status-publish","format-standard","hentry","category-30"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2171"}],"version-history":[{"count":1,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2171\/revisions"}],"predecessor-version":[{"id":2172,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2171\/revisions\/2172"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2171"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}