{"id":66859,"date":"2023-12-21T14:58:22","date_gmt":"2023-12-21T06:58:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=66859"},"modified":"2023-12-21T14:58:24","modified_gmt":"2023-12-21T06:58:24","slug":"%e7%a5%9e%e7%bb%8f%e7%bd%91%e7%bb%9c%e6%bf%80%e6%b4%bb%e5%87%bd%e6%95%b0%e7%9a%84%e4%bd%9c%e7%94%a8%e5%92%8c%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/66859.html","title":{"rendered":"\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\u7684\u4f5c\u7528\u548c\u539f\u7406"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\">\n<p>\u6fc0\u6d3b\u51fd\u6570\u5728\u795e\u7ecf\u7f51\u7edc\u4e2d\u7684\u4f5c\u7528\u662f\u589e\u52a0\u7f51\u7edc\u7684\u975e\u7ebf\u6027\u7279\u6027\uff0c\u4ece\u800c\u63d0\u9ad8\u7f51\u7edc\u7684\u62df\u5408\u80fd\u529b\uff0c\u5e76\u901a\u8fc7\u4e0d\u540c\u7684\u6570\u5b66\u6a21\u578b\u548c\u7279\u6027\u6765\u89e3\u51b3\u68af\u5ea6\u6d88\u5931\u7b49\u95ee\u9898\uff0c\u4ee5\u4fc3\u8fdb\u7f51\u7edc\u7684\u7a33\u5b9a\u8bad\u7ec3\u548c\u66f4\u597d\u7684\u6027\u80fd\u8868\u73b0\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\u7684\u4f5c\u7528\u548c\u539f\u7406\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5176\u5728\u795e\u7ecf\u7f51\u7edc\u4e2d\u7684\u91cd\u8981\u6027\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u6fc0\u6d3b\u51fd\u6570\u7684\u57fa\u672c\u4f5c\u7528<\/h2>\n\n\n\n<p>\u6fc0\u6d3b\u51fd\u6570\u662f\u795e\u7ecf\u7f51\u7edc\u4e2d\u4e00\u4e2a\u81f3\u5173\u91cd\u8981\u7684\u7ec4\u4ef6\uff0c\u5176\u4e3b\u8981\u4f5c\u7528\u5728\u4e8e\u5f15\u5165\u975e\u7ebf\u6027\u56e0\u7d20\uff0c\u4ece\u800c\u4f7f\u795e\u7ecf\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u548c\u8868\u8fbe\u66f4\u52a0\u590d\u6742\u7684\u51fd\u6570\u5173\u7cfb\u3002\u7ebf\u6027\u53d8\u6362\u7684\u5806\u53e0\u672c\u8d28\u4e0a\u8fd8\u662f\u7ebf\u6027\u7684\uff0c\u800c\u6fc0\u6d3b\u51fd\u6570\u7684\u5f15\u5165\u6253\u7834\u4e86\u8fd9\u79cd\u7ebf\u6027\u5173\u7cfb\uff0c\u4f7f\u5f97\u795e\u7ecf\u7f51\u7edc\u53ef\u4ee5\u66f4\u597d\u5730\u62df\u5408\u975e\u7ebf\u6027\u51fd\u6570\u3002\u8fd9\u79cd\u975e\u7ebf\u6027\u8f6c\u6362\u4e3a\u795e\u7ecf\u7f51\u7edc\u589e\u52a0\u4e86\u8868\u8fbe\u80fd\u529b\uff0c\u4f7f\u5176\u80fd\u591f\u5904\u7406\u66f4\u4e3a\u590d\u6742\u7684\u6570\u636e\u6a21\u5f0f\u548c\u7279\u5f81\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u5e38\u89c1\u7684\u6fc0\u6d3b\u51fd\u6570\u53ca\u5176\u7279\u70b9<\/h2>\n\n\n\n<ul>\n<li>Sigmoid\u51fd\u6570\uff1a\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u5b83\u5c06\u8f93\u5165\u7684\u5b9e\u6570\u538b\u7f29\u5230(0, 1)\u7684\u533a\u95f4\u5185\u3002\u5176\u5e73\u6ed1\u7684\u7279\u6027\u4f7f\u5f97\u5b83\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u8868\u73b0\u826f\u597d\uff0c\u4f46\u4e5f\u5b58\u5728\u7740\u68af\u5ea6\u6d88\u5931\u7684\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6df1\u5c42\u7f51\u7edc\u4e2d\uff0c\u5bb9\u6613\u51fa\u73b0\u68af\u5ea6\u5f25\u6563\u7684\u60c5\u51b5\uff0c\u5f71\u54cd\u4e86\u7f51\u7edc\u7684\u8bad\u7ec3\u6548\u679c\u3002<\/li>\n\n\n\n<li>ReLU\u51fd\u6570\uff1a\u662f\u4e00\u79cd\u7b80\u5355\u800c\u6709\u6548\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u5f53\u8f93\u5165\u5927\u4e8e\u96f6\u65f6\u8f93\u51fa\u8be5\u503c\uff0c\u5426\u5219\u8f93\u51fa\u96f6\u3002\u76f8\u6bd4\u4e8eSigmoid\u51fd\u6570\uff0cReLU\u51fd\u6570\u5728\u8ba1\u7b97\u4e0a\u66f4\u52a0\u9ad8\u6548\uff0c\u5e76\u4e14\u89e3\u51b3\u4e86\u68af\u5ea6\u6d88\u5931\u7684\u95ee\u9898\u3002\u4f46\u662f\uff0cReLU\u51fd\u6570\u4e5f\u5b58\u5728\u4e00\u4e2a\u95ee\u9898\uff0c\u5373\u5728\u8d1f\u6570\u90e8\u5206\u8f93\u51fa\u4e3a\u96f6\uff0c\u5bfc\u81f4\u795e\u7ecf\u5143\u6b7b\u4ea1\u73b0\u8c61\uff0c\u5f71\u54cd\u4e86\u7f51\u7edc\u7684\u7a00\u758f\u6027\u548c\u8868\u8fbe\u80fd\u529b\u3002<\/li>\n\n\n\n<li>Leaky ReLU\u51fd\u6570\uff1a\u4e3a\u4e86\u89e3\u51b3ReLU\u51fd\u6570\u5e26\u6765\u7684\u795e\u7ecf\u5143\u6b7b\u4ea1\u95ee\u9898\uff0cLeaky ReLU\u51fd\u6570\u88ab\u63d0\u51fa\u3002\u5b83\u5728\u8d1f\u6570\u90e8\u5206\u4e0d\u662f\u5b8c\u5168\u53d6\u96f6\uff0c\u800c\u662f\u91c7\u7528\u4e00\u4e2a\u6781\u5c0f\u7684\u659c\u7387\uff0c\u4fdd\u8bc1\u4e86\u5728\u8d1f\u6570\u533a\u57df\u4e5f\u6709\u4e00\u5b9a\u7684\u68af\u5ea6\uff0c\u907f\u514d\u4e86\u795e\u7ecf\u5143\u7684\u5b8c\u5168\u5931\u6d3b\u3002<\/li>\n\n\n\n<li>Tanh\u51fd\u6570\uff1a\u540c\u6837\u662f\u4e00\u79cdS\u578b\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u4f46\u76f8\u6bd4\u4e8eSigmoid\u51fd\u6570\uff0cTanh\u51fd\u6570\u8f93\u51fa\u7684\u8303\u56f4\u662f(-1, 1)\uff0c\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u89e3\u51b3\u4e86\u68af\u5ea6\u6d88\u5931\u7684\u95ee\u9898\u3002\u7136\u800c\uff0cTanh\u51fd\u6570\u5728\u8f93\u5165\u8f83\u5927\u6216\u8f83\u5c0f\u65f6\u4ecd\u7136\u5b58\u5728\u68af\u5ea6\u6d88\u5931\u7684\u60c5\u51b5\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u6fc0\u6d3b\u51fd\u6570\u7684\u9009\u62e9\u4e0e\u5e94\u7528<\/h2>\n\n\n\n<p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6fc0\u6d3b\u51fd\u6570\u5bf9\u4e8e\u795e\u7ecf\u7f51\u7edc\u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u9488\u5bf9\u4e0d\u540c\u7684\u95ee\u9898\u548c\u7f51\u7edc\u7ed3\u6784\uff0c\u9700\u8981\u8003\u8651\u6fc0\u6d3b\u51fd\u6570\u7684\u7279\u6027\u548c\u4f18\u52a3\uff0c\u4ece\u800c\u505a\u51fa\u5408\u7406\u7684\u9009\u62e9\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u56fe\u50cf\u6570\u636e\u65f6\uff0cReLU\u53ca\u5176\u53d8\u79cd\u901a\u5e38\u8868\u73b0\u8f83\u597d\uff1b\u800c\u5728\u5904\u7406\u5e8f\u5217\u6570\u636e\u65f6\uff0cTanh\u6216\u8005\u5176\u4ed6\u5177\u6709\u8bb0\u5fc6\u6027\u7684\u6fc0\u6d3b\u51fd\u6570\u53ef\u80fd\u66f4\u9002\u5408\u3002<\/p>\n\n\n\n<p>\u6b64\u5916\uff0c\u5728\u8bbe\u8ba1\u795e\u7ecf\u7f51\u7edc\u65f6\uff0c\u53ef\u4ee5\u91c7\u7528\u591a\u79cd\u6fc0\u6d3b\u51fd\u6570\u7684\u7ec4\u5408\uff0c\u6784\u5efa\u66f4\u590d\u6742\u3001\u66f4\u5177\u8868\u8fbe\u80fd\u529b\u7684\u7f51\u7edc\u7ed3\u6784\u3002\u4f8b\u5982\uff0c\u5728\u4e0d\u540c\u5c42\u6b21\u4f7f\u7528\u4e0d\u540c\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u6216\u8005\u5f15\u5165\u95e8\u63a7\u673a\u5236\uff08\u5982LSTM\u548cGRU\u4e2d\u7684\u95e8\u63a7\u5355\u5143\uff09\uff0c\u90fd\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u5347\u7f51\u7edc\u7684\u6027\u80fd\u548c\u5b66\u4e60\u80fd\u529b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u6fc0\u6d3b\u51fd\u6570\u7684\u539f\u7406\u548c\u6570\u5b66\u6a21\u578b<\/h2>\n\n\n\n<p>\u6fc0\u6d3b\u51fd\u6570\u7684\u9009\u62e9\u4e0d\u4ec5\u4f9d\u8d56\u4e8e\u5176\u5728\u7f51\u7edc\u4e2d\u7684\u8868\u73b0\uff0c\u8fd8\u4e0e\u5176\u6570\u5b66\u6a21\u578b\u548c\u539f\u7406\u5bc6\u5207\u76f8\u5173\u3002\u901a\u8fc7\u5bf9\u6fc0\u6d3b\u51fd\u6570\u7684\u5bfc\u6570\u8fdb\u884c\u5206\u6790\uff0c\u53ef\u4ee5\u4e86\u89e3\u5176\u5728\u68af\u5ea6\u4e0b\u964d\u4e2d\u7684\u8868\u73b0\u3002\u826f\u597d\u7684\u6fc0\u6d3b\u51fd\u6570\u5e94\u8be5\u5177\u6709\u826f\u597d\u7684\u5bfc\u6570\u6027\u8d28\uff0c\u80fd\u591f\u907f\u514d\u68af\u5ea6\u6d88\u5931\u6216\u68af\u5ea6\u7206\u70b8\u7684\u95ee\u9898\uff0c\u6709\u5229\u4e8e\u7f51\u7edc\u7684\u7a33\u5b9a\u8bad\u7ec3\u3002<\/p>\n\n\n\n<p>\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\u4f5c\u4e3a\u795e\u7ecf\u7f51\u7edc\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\uff0c\u5728\u7f51\u7edc\u7684\u6027\u80fd\u548c\u8868\u8fbe\u80fd\u529b\u4e2d\u626e\u6f14\u7740\u4e0d\u53ef\u6216\u7f3a\u7684\u89d2\u8272\u3002\u9009\u62e9\u5408\u9002\u7684\u6fc0\u6d3b\u51fd\u6570\uff0c\u4e86\u89e3\u5176\u539f\u7406\u548c\u7279\u6027\uff0c\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u8bad\u7ec3\u9ad8\u6548\u7684\u795e\u7ecf\u7f51\u7edc\u5177\u6709\u91cd\u8981\u610f\u4e49\u3002\u968f\u7740\u6df1\u5ea6\u5b66\u4e60\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u5bf9\u6fc0\u6d3b\u51fd\u6570\u7684\u7814\u7a76\u548c\u4f18\u5316\u5c06\u4f1a\u6301\u7eed\u63a8\u8fdb\uff0c\u4ee5\u66f4\u597d\u5730\u6ee1\u8db3\u4e0d\u540c\u4efb\u52a1\u548c\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n<p><img fetchpriority=\"high\" decoding=\"async\" width=\"484\" height=\"300\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/12\/571296-\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\u7684\u4f5c\u7528\u548c\u539f\u7406.png?x-oss-process=image\/auto-orient,1\/format,webp\" class=\"aligncenter\" alt=\"\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\u7684\u4f5c\u7528\u548c\u539f\u7406\" \/><\/p>\n\n\n\n<p><strong>\u5e38\u89c1\u95ee\u7b54\uff1a<\/strong><\/p>\n\n\n\n<ul>\n<li>\u95ee\uff1a\u4ec0\u4e48\u662f\u795e\u7ecf\u7f51\u7edc\u6fc0\u6d3b\u51fd\u6570\uff1f<\/li>\n\n\n\n<li>\u7b54\uff1a\u6fc0\u6d3b\u51fd\u6570\u662f\u795e\u7ecf\u7f51\u7edc\u4e2d\u7684\u4e00\u79cd\u975e\u7ebf\u6027\u53d8\u6362\uff0c\u5b83\u5c06\u795e\u7ecf\u5143\u7684\u8f93\u5165\u6620\u5c04\u5230\u8f93\u51fa\uff0c\u5f15\u5165\u975e\u7ebf\u6027\u7279\u6027\uff0c\u4f7f\u795e\u7ecf\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u548c\u8868\u8fbe\u66f4\u4e3a\u590d\u6742\u7684\u51fd\u6570\u5173\u7cfb\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u95ee\uff1a\u4e0d\u540c\u6fc0\u6d3b\u51fd\u6570\u6709\u4f55\u533a\u522b\uff1f\u5982\u4f55\u9009\u62e9\u9002\u5408\u7684\u6fc0\u6d3b\u51fd\u6570\uff1f<\/li>\n\n\n\n<li>\u7b54\uff1a\u5e38\u89c1\u7684\u6fc0\u6d3b\u51fd\u6570\u5982Sigmoid\u3001ReLU\u3001Tanh\u7b49\uff0c\u5b83\u4eec\u5177\u6709\u4e0d\u540c\u7684\u7279\u6027\u3002\u9009\u62e9\u6fc0\u6d3b\u51fd\u6570\u9700\u8003\u8651\u68af\u5ea6\u6d88\u5931\u3001\u795e\u7ecf\u5143\u6b7b\u4ea1\u7b49\u95ee\u9898\uff0c\u5e76\u6839\u636e\u4efb\u52a1\u9700\u6c42\u548c\u6570\u636e\u7279\u70b9\u6765\u51b3\u5b9a\u3002\u4f8b\u5982\uff0cReLU\u5728\u5904\u7406\u56fe\u50cf\u6570\u636e\u65f6\u8868\u73b0\u8f83\u597d\uff0c\u800cTanh\u9002\u7528\u4e8e\u5e8f\u5217\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u95ee\uff1a\u6fc0\u6d3b\u51fd\u6570\u5bf9\u795e\u7ecf\u7f51\u7edc\u8bad\u7ec3\u6709\u4f55\u5f71\u54cd\uff1f<\/li>\n\n\n\n<li>\u7b54\uff1a\u6fc0\u6d3b\u51fd\u6570\u76f4\u63a5\u5f71\u54cd\u7740\u795e\u7ecf\u7f51\u7edc\u7684\u8bad\u7ec3\u6548\u679c\u3002\u826f\u597d\u7684\u6fc0\u6d3b\u51fd\u6570\u6709\u5229\u4e8e\u68af\u5ea6\u4e0b\u964d\u7684\u7a33\u5b9a\u8bad\u7ec3\uff0c\u907f\u514d\u68af\u5ea6\u6d88\u5931\u6216\u68af\u5ea6\u7206\u70b8\u95ee\u9898\uff0c\u4ece\u800c\u63d0\u5347\u7f51\u7edc\u7684\u6027\u80fd\u8868\u73b0\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u95ee\uff1a\u4e3a\u4ec0\u4e48\u9700\u8981\u975e\u7ebf\u6027\u6fc0\u6d3b\u51fd\u6570\uff1f\u7ebf\u6027\u6fc0\u6d3b\u51fd\u6570\u4e0d\u884c\u5417\uff1f<\/li>\n\n\n\n<li>\u7b54\uff1a\u795e\u7ecf\u7f51\u7edc\u82e5\u53ea\u4f7f\u7528\u7ebf\u6027\u6fc0\u6d3b\u51fd\u6570\uff0c\u65e0\u6cd5\u62df\u5408\u590d\u6742\u7684\u975e\u7ebf\u6027\u5173\u7cfb\uff0c\u56e0\u4e3a\u591a\u4e2a\u7ebf\u6027\u53d8\u6362\u7684\u53e0\u52a0\u4ecd\u7136\u662f\u7ebf\u6027\u7684\u3002\u975e\u7ebf\u6027\u6fc0\u6d3b\u51fd\u6570\u7684\u5f15\u5165\u4f7f\u5f97\u795e\u7ecf\u7f51\u7edc\u80fd\u591f\u5904\u7406\u66f4\u52a0\u590d\u6742\u7684\u6570\u636e\u6a21\u5f0f\u548c\u7279\u5f81\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u95ee\uff1a\u6fc0\u6d3b\u51fd\u6570\u7684\u6570\u5b66\u6a21\u578b\u548c\u5bfc\u6570\u6027\u8d28\u4e3a\u4f55\u91cd\u8981\uff1f<\/li>\n\n\n\n<li>\u7b54\uff1a\u6fc0\u6d3b\u51fd\u6570\u7684\u6570\u5b66\u6a21\u578b\u548c\u5bfc\u6570\u6027\u8d28\u76f4\u63a5\u5173\u7cfb\u5230\u68af\u5ea6\u4e0b\u964d\u8fc7\u7a0b\u4e2d\u7684\u68af\u5ea6\u4f20\u64ad\u548c\u7f51\u7edc\u7684\u6536\u655b\u6027\u3002\u826f\u597d\u7684\u5bfc\u6570\u6027\u8d28\u6709\u52a9\u4e8e\u907f\u514d\u68af\u5ea6\u6d88\u5931\u6216\u68af\u5ea6\u7206\u70b8\u95ee\u9898\uff0c\u4f7f\u7f51\u7edc\u80fd\u591f\u66f4\u7a33\u5b9a\u5730\u5b66\u4e60\u548c\u8bad\u7ec3\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u6fc0\u6d3b\u51fd\u6570\u5728\u795e\u7ecf\u7f51\u7edc\u4e2d\u7684\u4f5c\u7528\u662f\u589e\u52a0\u7f51\u7edc\u7684\u975e\u7ebf\u6027\u7279\u6027\uff0c\u4ece\u800c\u63d0\u9ad8\u7f51\u7edc\u7684\u62df\u5408\u80fd\u529b\uff0c\u5e76\u901a\u8fc7\u4e0d\u540c\u7684\u6570\u5b66\u6a21\u578b\u548c\u7279\u6027\u6765\u89e3\u51b3\u68af\u5ea6 [&hellip;]","protected":false},"author":3,"featured_media":66862,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[3406,284],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/66859"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=66859"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/66859\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/66862"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=66859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=66859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=66859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}