{"id":370,"date":"2020-10-25T21:39:27","date_gmt":"2020-10-25T13:39:27","guid":{"rendered":"http:\/\/hk.khscience.cn\/docs\/?p=370"},"modified":"2025-07-08T22:29:38","modified_gmt":"2025-07-08T14:29:38","slug":"lstm","status":"publish","type":"post","link":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/","title":{"rendered":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\">\n<p><span><b>LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\u662f\u4e13\u4e3a\u4f7f\u7528<\/b><strong style=\"font-weight: bold;\">LSTM\/BiLSTM\/GRU<\/strong><\/span><strong>\u7b49RNN\u65b9\u6cd5\u8fdb\u884c\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7684\u5de5\u5177\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u8f6f\u4ef6\u4e2d\u7684\u4ee3\u7801\u5728\u4e0d\u5b9a\u671f\u66f4\u65b0\u4e2d\uff0c\u4e0d\u65ad\u5b8c\u5584\u548c\u6dfb\u52a0\u65b0\u7684\u529f\u80fd\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u81f4\u529b\u4e8e\u5b9e\u73b0\u4f18\u8d28\u3001\u6613\u7528\u7684\u7a0b\u5e8f\uff0c\u5e2e\u52a9\u7814\u7a76\u4eba\u5458\u5feb\u901f\u5b9e\u73b0\u76ee\u6807<\/strong><\/p>\n<\/blockquote>\n\n\n         <style>\r\n             #player69ed6c0a87855.h5vp_player { widthborder-radius overflow: hidden; }        <\/style>\r\n        <div id=\"h5vp_player\">\r\n            <div id=\"player69ed6c0a87855\" 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\\\/08\\\/RNN\\u56fe\\u5f62\\u8bd5\\u7528\\u7248_x264.mp4&quot;,&quot;poster&quot;:false,&quot;id&quot;:0}}\">\r\n                <video controls playsinline poster=\"\"  >\r\n                    <source src=\"https:\/\/khscience.vip:555\/wp-content\/uploads\/2023\/08\/RNN\u56fe\u5f62\u8bd5\u7528\u7248_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<p><\/p>\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\/BV19x1WYGE8x\/?spm_id_from=333.999.0.0&amp;vd_source=5e65959f8a047340cb194f5cc1d54eb4\" target=\"_blank\" rel=\"noreferrer noopener\">\u89c6\u9891\u5907\u7528\u5730\u5740<\/a><\/div>\n<\/div>\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\">MATLAB2020a\u4ee5\u4e0a\u7248\u672c<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u8f6f\u4ef6\u5b89\u88c5\u65b9\u6cd5<\/strong><\/h4>\n\n\n\n<p class=\"is-style-iw-2em\">1.\u5c06\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u89e3\u538b\uff0c\u5e76\u5c06MATLAB\u8f6f\u4ef6\u5f53\u524d\u6587\u4ef6\u5939\u8bbe\u7f6e\u4e3a\u89e3\u538b\u540e\u7684\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-29-1024x504.png\" alt=\"\" class=\"wp-image-2664\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-29-1024x504.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-29-300x148.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-29-768x378.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-29.png 1153w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">2.\u53cc\u51fbLSTM_BiLSTM_GRU.mlappinstall<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-30-1024x504.png\" alt=\"\" class=\"wp-image-2665\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-30-1024x504.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-30-300x148.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-30-768x378.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-30.png 1153w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">3.\u70b9\u51fb\u5b89\u88c5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-31-1024x504.png\" alt=\"\" class=\"wp-image-2666\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-31-1024x504.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-31-300x148.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-31-768x378.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-31.png 1153w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">4.\u70b9\u51fb\u201cAPP\u201d\u6807\u7b7e\u9875<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-32-1024x504.png\" alt=\"\" class=\"wp-image-2667\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-32-1024x504.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-32-300x148.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-32-768x378.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-32.png 1153w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">5.\u70b9\u51fb\u4e0b\u62c9\u4e09\u89d2<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-33-1024x504.png\" alt=\"\" class=\"wp-image-2668\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-33-1024x504.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-33-300x148.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-33-768x378.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-33.png 1153w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">6.\u9009\u62e9\u8be5\u540d\u79f0\u7684APP\uff08\u5373LSTM_BiLSTM_GRU\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-34-1024x499.png\" alt=\"\" class=\"wp-image-2669\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-34-1024x499.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-34-300x146.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-34-768x375.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-34.png 1144w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">7.\u6b64\u65f6\u8f6f\u4ef6\u5c31\u6253\u5f00\u4e86\uff0c\u53ef\u4ee5\u53c2\u7167\u4e0b\u6587\u8f6f\u4ef6\u529f\u80fd\u4ecb\u7ecd\u64cd\u4f5c\u8f6f\u4ef6\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-35-1024x602.png\" alt=\"\" class=\"wp-image-2670\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-35-1024x602.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-35-300x177.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-35-768x452.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-35.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e09\u3001\u8f6f\u4ef6\u529f\u80fd\u4ecb\u7ecd<\/strong><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><span style=\"color:#000000\" class=\"tadv-color\">1.<strong>\u652f\u6301\u591a\u79cd\u683c\u5f0f\u6570\u636e\u5bfc\u5165<\/strong><\/span><\/strong><\/h5>\n\n\n\n<p class=\"is-style-iw-2em\">\u652f\u6301mat\u3001xsl\u3001xslx\u683c\u5f0f\u6570\u636e\u7684\u5bfc\u5165\u3002<\/p>\n\n\n\n<ul>\n<li>\u5982\u679c\u662fmat\u6587\u4ef6\uff0c\u8981\u6c42\u6587\u4ef6\u4e2d\u53ea\u5305\u542b\u5355\u4e2a\u53d8\u91cf\uff0c\u4e14\u4e3a\u4e00\u7ef4\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u662fxsl\/xslx\u6587\u4ef6\uff0c\u8981\u6c42\u6570\u636e\u4e3a\u5355\u884c\/\u5355\u5217\uff0c\u4e0d\u80fd\u5305\u542b\u6807\u9898\u3002<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><span style=\"color:#000000\" class=\"tadv-color\">2.\u591a\u79cd\u53c2\u6570\u8bbe\u7f6e\u9009\u9879\u3002<\/span><\/strong><\/h5>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff081\uff09\u6df1\u5ea6\u5b66\u4e60\u7f51\u7edc\u7c7b\u578b\uff1a<\/strong>&nbsp;\u672c\u8f6f\u4ef6\u652f\u6301\u4e09\u79cd\u6df1\u5ea6\u5b66\u4e60\u7f51\u7edc\uff1a<strong>GRU\uff0cLSTM\u548cBiLSTM<\/strong>\u3002\u8fd9\u4e9b\u7f51\u7edc\u7c7b\u578b\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u9884\u6d4b\u9700\u6c42\uff0c\u4f7f\u5f97\u8f6f\u4ef6\u5177\u6709\u5f3a\u5927\u7684\u9884\u6d4b\u80fd\u529b\u548c\u5e7f\u6cdb\u7684\u9002\u7528\u6027\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff082\uff09LSTM\/BiLSTM\/GRU\u5c42\u9690\u85cf\u5355\u5143\u6570\uff1a<\/strong>&nbsp;\u9690\u85cf\u5355\u5143\u7684\u6570\u91cf\u5bf9\u5e94\u4e8e\u65f6\u95f4\u6b65\u957f\u4e4b\u95f4\u8bb0\u4f4f\u7684\u4fe1\u606f\u91cf\uff08\u9690\u85cf\u72b6\u6001\uff09\uff0c\u9690\u85cf\u72b6\u6001\u53ef\u4ee5\u5305\u542b\u6765\u81ea\u6240\u6709\u5148\u524d\u65f6\u95f4\u6b65\u957f\u7684\u4fe1\u606f\u3002\u5982\u679c\u8be5\u503c\u8bbe\u7f6e\u8fc7\u5927\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8fc7\u62df\u5408\u3002\u8be5\u503c\u53ef\u4ee5\u4ece\u51e0\u5341\u5230\u51e0\u5343\u4e0d\u7b49\u3002\u672c\u8f6f\u4ef6\u652f\u6301\u8bbe\u7f6e\u591a\u5c42\u7f51\u7edc\uff0c\u4f8b\u5982\u8f93\u5165&#8221;<span style=\"color:#ff6900\" class=\"tadv-color\">16,8,4<\/span>&#8220;\uff0c\u5219\u4ee3\u8868\u8bbe\u7f6e\u4e86\u4e09\u6b21\u7f51\u7edc\uff0c\u5355\u5143\u6570\u5206\u522b\u662f16\u30018\u30014<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff083\uff09\u6700\u5927\u8fed\u4ee3\u6570\uff1a<\/strong>\u6839\u636e\u8bad\u7ec3\u6570\u636e\u89c4\u6a21\u548c\u6a21\u578b\u590d\u6742\u6027\u8fdb\u884c\u8bbe\u7f6e\uff0c\u4e00\u822c\u5728\u51e0\u767e\u5230\u51e0\u5343\u6b21\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff084\uff09mini-banch\u5c3a\u5bf8\uff1a<\/strong>mini-banch\u662f\u8bad\u7ec3\u96c6\u7684\u5b50\u96c6\uff0c\u7528\u4e8e\u8bc4\u4f30\u635f\u5931\u51fd\u6570\u7684\u68af\u5ea6\u548c\u66f4\u65b0\u6743\u91cd\u3002\u8be5\u53c2\u6570\u7528\u4e8e\u8bbe\u7f6emini-banch\u7684\u5c3a\u5bf8\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff085\uff09\u68af\u5ea6\u6781\u9650\uff1a<\/strong>\u4e3a\u4e86\u9632\u6b62\u7531\u4e8e\u68af\u5ea6\u8fc7\u5927\u5bfc\u81f4\u7684\u8bad\u7ec3\u4e0d\u7a33\u5b9a\u4ee5\u53ca\u201c\u68af\u5ea6\u7206\u70b8\u201d\uff0c\u9700\u8981\u8bbe\u7f6e\u68af\u5ea6\u6781\u9650\u3002\u8fd9\u6709\u52a9\u4e8e\u5728\u8bbe\u7f6e\u66f4\u9ad8\u7684\u5b66\u4e60\u7387\u548c\u5b58\u5728\u5f02\u5e38\u503c\u7684\u60c5\u51b5\u4e0b\u7a33\u5b9a\u8bad\u7ec3\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff086\uff09\u521d\u59cb\u5316\u5b66\u4e60\u901f\u7387\uff1a<\/strong>\u7528\u4e8e\u8bad\u7ec3\u7684\u521d\u59cb\u5b66\u4e60\u901f\u7387\u3002\u5982\u679c\u5b66\u4e60\u7387\u592a\u4f4e\uff0c\u90a3\u4e48\u8bad\u7ec3\u9700\u8981\u5f88\u957f\u65f6\u95f4\uff0c\u5982\u679c\u5b66\u4e60\u7387\u592a\u9ad8\uff0c\u90a3\u4e48\u53ef\u80fd\u65e0\u6cd5\u5f97\u5230\u6700\u4f18\u7ed3\u679c\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff087\uff09\u542f\u7528\u5b66\u4e60\u901f\u7387\u4e0b\u964d\uff1a<\/strong>\u201c\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u201d\u6307\u7684\u662f\u5b66\u4e60\u7387\u6bcf\u7ecf\u8fc7\u7279\u5b9a\u8fed\u4ee3\u6b21\u6570\u540e\u4e58\u4ee5\u4e00\u4e2a\u56e0\u5b50\uff0c\u4ee5\u5b9e\u73b0\u5b66\u4e60\u901f\u7387\u968f\u7740\u8bad\u7ec3\u7684\u8fdb\u884c\u4e0d\u65ad\u4e0b\u964d\uff0c\u4ee5\u517c\u987e\u8bad\u7ec3\u901f\u5ea6\u4e0e\u8bad\u7ec3\u7cbe\u5ea6\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff088\uff09\u4e0b\u964d\u8fed\u4ee3\u6570\uff1a<\/strong>\u6bcf\u6b21\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u6240\u95f4\u9694\u7684\u8fed\u4ee3\u6570<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff089\uff09\u4e0b\u964d\u56e0\u5b50\uff1a<\/strong>\u6bcf\u6b21\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u4e58\u4ee5\u7684\u56e0\u5b50\u6570<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff0810\uff09\u663e\u793a\u8bad\u7ec3\u8fc7\u7a0b\uff08<strong>\u9700\u8981\u4f7f\u7528\u5b8c\u6574\u7248\u7a0b\u5e8f<\/strong>\uff09\uff1a<\/strong>\u9009\u4e2d\u540e\u4f1a\u663e\u793aLSTM\u795e\u7ecf\u7f51\u7edc\u8fed\u4ee3\u8fc7\u7a0b\uff0c\u7ed8\u5236\u5982\u4e0b\u56fe\u50cf\uff1a\uff08\u5efa\u8bae\u52fe\u9009\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20-1024x541.png\" alt=\"\" class=\"wp-image-2613\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20-1024x541.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20-300x159.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20-768x406.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20-1536x812.png 1536w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-20.png 1719w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff0811\uff09\u6570\u636e\u5f52\u4e00\u5316\uff1a<\/strong>\u9009\u4e2d\u540e\u4f1a\u5728\u6a21\u578b\u8bad\u7ec3\u524d\u5c06\u6570\u636e\u8fdb\u884c\u5f52\u4e00\u5316\uff0c\u5e76\u5728\u8bad\u7ec3\u5b8c\u6210\u540e\u8fd8\u539f\u3002\u5efa\u8bae\u52fe\u9009\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff0812\uff09\u968f\u673a\u79cd\u5b50\uff1a<\/strong>\u9009\u4e2d\u540e\u4f1a\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u5373\u6bcf\u6b21\u8bad\u7ec3\u7ed3\u679c\u5c06\u4f1a\u4fdd\u6301\u4e00\u81f4\u3002\u53ef\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u52fe\u9009\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em has-black-color has-text-color\"><strong>\uff0813\uff09\u7ed8\u5236\u72ec\u7acb\u7a97\u53e3\u56fe\u7247(\u4fbf\u4e8e\u5bfc\u51fa\uff0c\u9700\u8981\u4f7f\u7528\u5b8c\u6574\u7248\u7a0b\u5e8f)<\/strong>\uff1a\u53ef\u4ee5\u7ed8\u5236\u9884\u6d4b\u7ed3\u679c\u5bf9\u6bd4\u56fe\u3001Loss\u53caRMSE\u503c\uff0c\u5373\u4e0b\u8ff0\u4e24\u5f20\u56fe\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"521\" height=\"410\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-21.png\" alt=\"\" class=\"wp-image-2614\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-21.png 521w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-21-300x236.png 300w\" sizes=\"(max-width: 521px) 100vw, 521px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"515\" height=\"404\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-22.png\" alt=\"\" class=\"wp-image-2615\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-22.png 515w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-22-300x235.png 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure><\/div>\n\n\n<h5 class=\"wp-block-heading\">3.<strong>\u4e09\u79cd\u8bad\u7ec3\u4e0e\u9884\u6d4b\u6a21\u5f0f\u3002<\/strong><\/h5>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff081\uff09\u5168\u90e8\u6570\u636e\u7528\u4e8e\u591a\u6b65\u9884\u6d4b\uff1a<\/strong>\u9884\u6d4b\u201c\u4e0d\u5b58\u5728\u201d\u7684\u6570\u636e\u3002\u5728\u8f6f\u4ef6\u4e2d\u6307\u5b9a\u60f3\u9884\u6d4b\u7684\u957f\u5ea6\uff0c\u70b9\u51fb\u5f00\u59cb\u8bad\u7ec3\u5c31\u53ef\u4ee5\u4e86\u3002\u6548\u679c\u5982\u4e0b\uff08\u81ea\u5e26\u6848\u4f8b\uff09\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6b64\u65f6\u9700\u8981\u4f60\u8bbe\u7f6e\u201c\u9884\u6d4b\u5e8f\u5217\u957f\u5ea6\u201d\uff0c\u4e5f\u5c31\u662f\u4f60\u60f3\u8981\u5f80\u540e\u9884\u6d4b\u591a\u5c11\u4e2a\u6570\u636e\u70b9\u3002\u9700\u8981\u6ce8\u610f\uff0c\u7531\u4e8e\u6b64\u65f6\u9884\u6d4b\u7684\u6570\u636e\u90fd\u662f\u672a\u6765\u7684\u672a\u77e5\u6570\u636e\uff0c\u6240\u4ee5\u65e0\u6cd5\u8ba1\u7b97\u8bc4\u4f30\u9884\u6d4b\u7cbe\u5ea6\u7684\u76f8\u5173\u53c2\u6570\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-36-1024x602.png\" alt=\"\" class=\"wp-image-2674\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-36-1024x602.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-36-300x177.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-36-768x452.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-36.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff082\uff09\u5212\u5206\u201c\u8bad\u7ec3-\u6d4b\u8bd5\u96c6\u201d\u7684\u591a\u6b65\u9884\u6d4b\uff1a<\/strong>\u5c06\u5168\u90e8\u6570\u636e\u6309\u7167\u4e00\u5b9a\u6bd4\u4f8b\u5212\u5206\u6210\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\uff0c\u7136\u540e<strong>\u591a\u6b65<\/strong>\u9884\u6d4b\u51fa\u4e8e\u6d4b\u8bd5\u96c6\u76f8\u540c\u957f\u5ea6\u7684\u6570\u636e\uff0c\u5e76\u753b\u56fe\u5bf9\u6bd4\uff0c\u8ba1\u7b97\u82e5\u5e72\u8bc4\u4f30\u6307\u6807\u3002\u8fd9\u79cd\u6a21\u5f0f\u4e0b\u7ed3\u679c\u5f80\u5f80\u5e76\u4e0d\u592a\u7406\u60f3\u3002\u6548\u679c\u5982\u4e0b\uff08\u81ea\u5e26\u6848\u4f8b\uff09\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6b64\u65f6\u9700\u8981\u4f60\u8bbe\u7f6e\u7684\u662f\u201c\u8bad\u7ec3\u96c6\u6bd4\u4f8b\/\u6570\u91cf\u201d\uff0c\u5c0f\u4e8e1\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6bd4\u4f8b\uff0c\u5927\u4e8e1\u7684\u6574\u6570\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6570\u91cf\u3002\u53f3\u4fa7\u7684RMSE\u3001MAPE\u3001MAE\u3001MSE\u3001R\u4ee3\u8868\u8bc4\u4f30\u9884\u6d4b\u6548\u679c\uff08\u6d4b\u8bd5\u96c6\u9884\u6d4b\u503c\u76f8\u5bf9\u4e8e\u6d4b\u8bd5\u96c6\u771f\u5b9e\u503c\uff09\u7684\u6307\u6807\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-37-1024x602.png\" alt=\"\" class=\"wp-image-2675\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-37-1024x602.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-37-300x177.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-37-768x452.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-37.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\uff083\uff09\u5212\u5206\u201c\u8bad\u7ec3-\u6d4b\u8bd5\u96c6\u201d\u7684\u5355\u6b65\u9884\u6d4b\uff1a<\/strong>\u5c06\u5168\u90e8\u6570\u636e\u6309\u7167\u4e00\u5b9a\u6bd4\u4f8b\u5212\u5206\u6210\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\uff0c\u7136\u540e<strong>\u5355\u6b65<\/strong>\u9884\u6d4b\u51fa\u4e8e\u6d4b\u8bd5\u96c6\u76f8\u540c\u957f\u5ea6\u7684\u6570\u636e\uff0c\u5e76\u753b\u56fe\u5bf9\u6bd4\uff0c\u8ba1\u7b97\u82e5\u5e72\u8bc4\u4f30\u6307\u6807\u3002\u8fd9\u79cd\u6a21\u5f0f\u4e0b\u7ed3\u679c\u5f80\u5f80\u8f83\u597d\u3002\u6548\u679c\u5982\u4e0b\uff08\u81ea\u5e26\u6848\u4f8b\uff09\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u5173\u4e8e\u5355\u6b65\u4e0e\u591a\u6b65\u7684\u533a\u522b\uff0c\u5927\u5bb6\u53ef\u4ee5\u770b\u8fd9\u91cc\uff1a<a href=\"https:\/\/khsci.com\/docs\/index.php\/2021\/11\/07\/onemul\/\">\u7b54\u7591\uff1a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4e2d\uff0c\u5355\u6b65\u9884\u6d4b\u4e0e\u591a\u6b65\u9884\u6d4b\u7684\u533a\u522b\uff1f<\/a><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6b64\u65f6\u9700\u8981\u4f60\u8bbe\u7f6e\u7684\u662f\u540c\u6837\u662f\u201c\u8bad\u7ec3\u96c6\u6bd4\u4f8b\/\u6570\u91cf\u201d\uff0c\u5c0f\u4e8e1\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6bd4\u4f8b\uff0c\u5927\u4e8e1\u7684\u6574\u6570\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6570\u91cf\u3002\u53f3\u4fa7\u7684RMSE\u3001MAPE\u3001MAE\u3001MSE\u3001R\u4ee3\u8868\u8bc4\u4f30\u9884\u6d4b\u6548\u679c\uff08\u6d4b\u8bd5\u96c6\u9884\u6d4b\u503c\u76f8\u5bf9\u4e8e\u6d4b\u8bd5\u96c6\u771f\u5b9e\u503c\uff09\u7684\u6307\u6807\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38-1024x602.png\" alt=\"\" class=\"wp-image-2676\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38-1024x602.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38-300x177.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38-768x452.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>4.\u6570\u636e\u5bfc\u51fa\uff08\u9700\u8981\u4f7f\u7528\u5b8c\u6574\u7248\u7a0b\u5e8f\uff09\u3002<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u70b9\u51fb\u201c\u5bfc\u51fa\u6570\u636e\u201d\uff1a<\/p>\n\n\n\n<ul>\n<li>\u53ef\u4ee5\u5c06\u9884\u6d4b\u7ed3\u679c\u3001\u8bad\u7ec3\u96c6\u6570\u636e\u3001\u6d4b\u8bd5\u96c6\u6570\u636e\u3001\u6b8b\u5dee\u3001\u62df\u5408\u503c\u7b49\u5bfc\u51fa\u3002<\/li>\n\n\n\n<li>\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4fdd\u5b58\u8def\u5f84\u3002<\/li>\n\n\n\n<li>\u4fdd\u5b58\u683c\u5f0f\u4e3aExcel<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4e94\u3001\u83b7\u53d6\u7a0b\u5e8f\uff08\u9700\u4f7f\u7528\u7535\u8111\u6d4f\u89c8\u5668\u6253\u5f00\uff09\">\u56db\u3001\u5173\u4e8e\u5b8c\u6574\u7248\u4e0e\u8bd5\u7528\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>\u8bd5\u7528\u7248<\/strong><\/td><\/tr><tr><td>\u6570\u636e\u5bfc\u5165\u3001\u53c2\u6570\u8bbe\u7f6e\u3001\u6a21\u578b\u8bad\u7ec3\u4e0e\u53ef\u89c6\u5316\u7ed3\u679c\u5c55\u793a<\/td><td>\u221a<\/td><td>\u221a<\/td><\/tr><tr><td>\u8f6f\u4ef6\u5168\u90e8\u6e90\u7801\uff08\u5305\u62ec\u8f6f\u4ef6\u5de5\u7a0bmlapp\u6587\u4ef6\u4e0e\u51fd\u6570m\u6587\u4ef6\uff09<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u53ef\u5bfc\u51fa\u9884\u6d4b\u7ed3\u679c\u6570\u636e<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u9884\u6d4b\u56fe\u65e0\u6c34\u5370<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u663e\u793a\u8bad\u7ec3\u8fc7\u7a0b\/\u7ed8\u5236\u72ec\u7acb\u7a97\u53e3\u56fe\u7247<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u9884\u6d4b\u6b65\u6570\/\u8bad\u7ec3\u96c6\u6bd4\u4f8b<\/td><td>\u221a<\/td><td>\u9884\u6d4b\u5e8f\u5217\u957f\u5ea6\u4e0d\u5927\u4e8e20\uff0c\u6bd4\u4f8b\u4e3a\u56fa\u5b9a\u503c0.9<\/td><\/tr><tr><td>\u65e0\u9650\u6b21\u8bad\u7ec3<\/td><td>\u221a<\/td><td>\u4e0a\u9650\u4e3a3\u6b21<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\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<p class=\"is-style-iw-2em\"><a href=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/RNN_Forecast_UI_wp.zip\">\u70b9\u51fb\u6b64\u5904\u4e0b\u8f7d\u516c\u5f00\u7248\u7a0b\u5e8f<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u516d\u3001\u83b7\u53d6\u56fe\u5f62\u754c\u9762\u7248LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u8f6f\u4ef6\uff08\u5b8c\u6574\u7248\uff09<\/strong><\/h4>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\u83b7\u53d6\u901a\u9053\u4e00\uff08\u6dd8\u5b9d\uff09\uff1a<\/strong><a href=\"https:\/\/item.taobao.com\/item.htm?id=642859203591\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u6b64\u5904\u83b7\u53d6\u5b8c\u6574\u7248\u7a0b\u5e8f<\/a><\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><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\u9700108\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-luminous-vivid-orange-color has-text-color\">\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\n<p class=\"is-style-iw-2em\"><\/p>\n\n\n<p><p><div class=\"erphp-wppay\">\n\t\t\t\t\u60a8\u9700\u8981\u5148\u652f\u4ed8 <b>98\u5143<\/b> \u624d\u80fd\u67e5\u770b\u6b64\u5904\u5185\u5bb9\uff01<a href=\"javascript:;\" class=\"erphp-wppay-loader\" data-post=\"370\">\u7acb\u5373\u652f\u4ed8<\/a>\n\t\t\t<\/div><\/p><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e03\u3001\u6e90\u7801\u4ecb\u7ecd<\/strong><\/h4>\n\n\n\n<p class=\"is-style-iw-2em has-luminous-vivid-orange-color has-text-color\">\u5982\u679c\u8d2d\u4e70\u5b8c\u6574\u7248\u4ee3\u7801\uff0c\u4f60\u5c06\u4f1a\u5f97\u5230\u5b9e\u73b0\u8be5\u5de5\u7a0b\u9879\u76ee\u7684\u6240\u6709\u6e90\u7801\uff0c\u5373\u4e0b\u56fe\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u6709\u6e90\u7801\u5927\u5bb6\u53ef\u4ee5\u66f4\u65b9\u4fbf\u4e86\u89e3\u7b97\u6cd5\u7684\u5b9e\u73b0\u8fc7\u7a0b\uff0c\u6309\u7167\u81ea\u5df1\u9700\u6c42\u66f4\u6539\u4ee3\u7801\uff0c\u6709\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u5b66\u672f\u4ef7\u503c\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em has-luminous-vivid-orange-color has-text-color\">\u5173\u4e8e\u6e90\u7801\u7684\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"168\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-26.png\" alt=\"\" class=\"wp-image-2624\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-26.png 330w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-26-300x153.png 300w\" sizes=\"(max-width: 330px) 100vw, 330px\" \/><\/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\">\u8fd9\u91cc<\/a>\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>1.RNNs_OfficialVersion.mlapp\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u56fe\u5f62\u754c\u9762\u4e3b\u7a0b\u5e8f\uff0c\u9700\u8981\u5728MATLAB\u7684APPdesigner\u4e2d\u6253\u5f00\u3002\u53ef\u7528\u4e8e\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u64cd\u4f5cLSTM\/BiLSTM\/GRU\u7684\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u529f\u80fd\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>2.Fun_RNNs_Fore_Onestep_TrainAndTest.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u5355\u6b65\uff09\uff0c\u90e8\u5206\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u5269\u4f59\u6570\u636e\u62ff\u6765\u505a\u5bf9\u6bd4\u9a8c\u8bc1\u3002\u8be5\u51fd\u6570\u5728\u56fe\u5f62\u754c\u9762\u8f6f\u4ef6\u4e2d\u8c03\u7528\uff0c\u662f\u5e95\u5c42\u5b9e\u73b0\u51fd\u6570\u4e4b\u4e00\u3002\u8be5\u6587\u4ef6\u4e3a\u51fd\u6570\u6587\u4ef6\uff0c\u9700\u8c03\u7528\uff0c\u4e0d\u80fd\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [foreDataRe,info,ind,net,YTrainRe,YTestRe,XTrainRe] = Fun_RNNs_Fore_Onestep_TrainAndTest(data,numHU,dropProb,MaxEp,MiniBatch,GraThr,InitLearnRa,Plots,LearnSch,LearnRaDP,LearnRaDF,NorFlag,SeedFlag,rnnName,figflag,rTrain,indNamesCell)\n% LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u5355\u6b65\uff09\uff0c\u90e8\u5206\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u5269\u4f59\u6570\u636e\u62ff\u6765\u505a\u5bf9\u6bd4\u9a8c\u8bc1\n% \u8f93\u5165\uff1a\n% data\uff1a\u8f93\u5165\u7684\u65f6\u95f4\u5e8f\u5217\u6570\u636e\uff0c\u7c7b\u578b\u4e3acell\u6216\u8005dat\n% numHU\uff1a\u5373numHiddenUnits\uff0cLSTM\u7684\u9690\u542b\u5355\u5143\u6570\u3002\u8be5\u53c2\u6570\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u6570\u7ec4\uff0c\u8868\u793a\u7684\u662f\u6784\u5efa\u591a\u5c42\u7f51\u7edc\uff0c\u4f8b\u5982numHU=[16,8]\uff0c\u4ee3\u8868\u6784\u5efa\u4e86\u4e24\u5c42\u7f51\u7edc\u7ed3\u6784\uff0c\u7b2c\u4e00\u5c4216\u4e2a\u9690\u85cf\u5355\u5143\uff0c\u7b2c\u4e8c\u5c428\u4e2a\u9690\u85cf\u5355\u5143\n% dropProb\uff1a\u4e22\u5f03\u5c42\u7684\u4e22\u5f03\u6982\u7387\uff0c\u5982\u679c\u4e0d\u4e22\u5f03\uff0c\u5219\u8bbe\u7f6e\u4e3a0\uff0c\u6700\u5927\u4e3a1\n% MaxEp\uff1a\u5373MaxEpochs\uff0c\u6700\u5927\u8fed\u4ee3\u6b21\u6570\n% MimiBatch\uff1a\u6279\u5c3a\u5bf8\n% GraThr\uff1a\u5373GradientThreshold\u68af\u5ea6\u6781\u9650\uff081\uff09\n% InitLearnRa\uff1a\u5373InitialLearnRate\u521d\u59cb\u5316\u5b66\u4e60\u901f\u7387\uff080.005\uff09\n% Plots\uff1a\u662f\u5426\u753b\u51fa\u8bad\u7ec3\u8fc7\u7a0b\uff0c1\u4e3a\u662f\uff0c\u5176\u4ed6\u503c\u4e3a\u5426\n% LearnSch\uff1a\u5373LearnRateSchedule\u662f\u5426\u5728\u4e00\u5b9a\u8fed\u4ee3\u6b21\u6570\u540e\u5b66\u4e60\u901f\u7387\u4e0b\u964d\uff0c1\u4e3a\u4f7f\u7528\uff0c LearnSch =&#039;piecewise&#039;\uff0c\u5176\u4ed6\u503c\u4e3a\u4e0d\u4f7f\u7528\n% LearnRaDP\uff1a\u5373LearnRateDropPeriod\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u65f6\u7684\u8fed\u4ee3\u6570\n% LearnRaDF\uff1a\u5373LearnRateDropFactor\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u56e0\u5b50\uff0c\u4e0b\u964d\u540e\u53d8\u4e3aLearnRaDF*InitLearnRa\uff0cLearnSch\u4e3a0\u65f6\u53ef\u4ee5\u8d4b0\n% NorFlag\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\n% rnnName\uff1a\u4f7f\u7528\u7684\u7f51\u7edc\u540d\u79f0\uff0c\u53ef\u9009\u9879\u5305\u62ec\uff1a&#039;GRU&#039;,&#039;LSTM&#039;,&#039;BiLSTM&#039;\uff0c\u6ce8\u610f\u5927\u5c0f\u5199\n% figflag\uff1a\u662f\u5426\u753b\u9884\u6d4b\u7ed3\u679c\u56fe\uff0c&#039;on&#039;\u4e3a\u753b\u56fe\uff0c&#039;off&#039;\u4e3a\u4e0d\u753b\n% rTrain\uff1a\u8bad\u7ec3\u96c6\u6bd4\u4f8b\/\u6570\u91cf\uff0crTrain&lt;1\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6bd4\u4f8b\uff0c&gt;1\u7684\u6574\u6570\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6570\u91cf.\n% indNamesCell\uff1a\u62df\u8fdb\u884c\u9884\u6d4b\u8bc4\u4ef7\u6307\u6807\u540d\u79f0\uff0c\u8be5\u53d8\u91cf\u4e3acell\u7c7b\u578b\uff0c\u5176\u4e2d\u5305\u542b\u7684\u6307\u6807\u540d\u79f0\u4e3a\u5b57\u7b26\u4e32\uff0c\u6307\u6807\u540d\u79f0\u5728\u4e0b\u8fb9\u5217\u8868\u4e2d\uff1a\n%   \u76ee\u524d\u652f\u6301\u7684\u6307\u6807\uff082021.8.11\uff09\uff1a\n%   MSE\uff1a\u5747\u65b9\u8bef\u5dee\uff08Mean Square Error\uff09\n%   RMSE\uff1a\u5747\u65b9\u6839\u8bef\u5dee\uff08Root Mean Square Error\uff09\n%   MAE\uff1a\u5e73\u5747\u7edd\u5bf9\u8bef\u5dee\uff08Mean Absolute Error\uff09\n%   MAPE\uff1a\u5e73\u5747\u7edd\u5bf9\u767e\u5206\u6bd4\u8bef\u5dee\uff08Mean Absolute Percentage Error\uff09\n%   R2\uff1a\u51b3\u5b9a\u7cfb\u6570\uff08R2-R-Square\uff09\n%   \u5982\u679c\u60f3\u83b7\u53d6MSE\u3001MAE\u4e24\u4e2a\u6307\u6807\uff0c\u5219\u8bbe\u7f6e\uff1aindNamesCell = {&#039;MSE&#039;,&#039;MAE&#039;}\n\n% \u8f93\u51fa\uff1a\n% foreDataRe\uff1a\u9884\u6d4b\u503c\uff0c\u5bf9\u5e94\u6d4b\u8bd5\u96c6\u7684Y\u503c\n% info\uff1a\u8bad\u7ec3\u8fc7\u7a0b\u6570\u636e\uff0c\u5305\u62ecTrainingLoss\u3001TrainingRMSE\u3001BaseLearnRate\u7b49\n% ind\uff1a\u9884\u6d4b\u6548\u679c\u8bc4\u4ef7\u6307\u6807\u7ed3\u679c\u6570\u7ec4\uff0c\u5176\u8bc4\u4ef7\u6307\u6807\u503c\u987a\u5e8f\u4e0eindNamesCell\u4e00\u4e00\u5bf9\u5e94\n% net\uff1a\u8bad\u7ec3\u597d\u7684\u795e\u7ecf\u7f51\u7edc\n% YTrainRe\uff1a\u8bad\u7ec3\u96c6\u7684Y\u503c\n% YTestRe\uff1a\u6d4b\u8bd5\u96c6\u7684Y\u503c<\/code><\/pre>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>3.Fun_RNNs_Fore_Mul_TrainAndTest.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff09\uff0c\u90e8\u5206\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u5269\u4f59\u6570\u636e\u62ff\u6765\u505a\u5bf9\u6bd4\u9a8c\u8bc1\u3002\u8be5\u51fd\u6570\u5728\u56fe\u5f62\u754c\u9762\u8f6f\u4ef6\u4e2d\u8c03\u7528\uff0c\u662f\u5e95\u5c42\u5b9e\u73b0\u51fd\u6570\u4e4b\u4e8c\u3002\u8be5\u6587\u4ef6\u4e3a\u51fd\u6570\u6587\u4ef6\uff0c\u9700\u8c03\u7528\uff0c\u4e0d\u80fd\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [foreDataRe,info,ind,net,YTrainRe,YTestRe,XTrainRe] = Fun_RNNs_Fore_Mul_TrainAndTest(data,numHU,dropProb,MaxEp,MiniBatch,GraThr,InitLearnRa,Plots,LearnSch,LearnRaDP,LearnRaDF,NorFlag,SeedFlag,rnnName,figflag,rTrain,indNamesCell)\n% LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff09\uff0c\u90e8\u5206\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u5269\u4f59\u6570\u636e\u62ff\u6765\u505a\u5bf9\u6bd4\u9a8c\u8bc1\n% \u8f93\u5165\uff1a\n% data\uff1a\u8f93\u5165\u7684\u65f6\u95f4\u5e8f\u5217\u6570\u636e\uff0c\u7c7b\u578b\u4e3acell\u6216\u8005dat\n% numHU\uff1a\u5373numHiddenUnits\uff0cLSTM\u7684\u9690\u542b\u5355\u5143\u6570\n% dropProb\uff1a\u4e22\u5f03\u5c42\u7684\u4e22\u5f03\u6982\u7387\uff0c\u5982\u679c\u4e0d\u4e22\u5f03\uff0c\u5219\u8bbe\u7f6e\u4e3a0\uff0c\u6700\u5927\u4e3a1\n% MaxEp\uff1a\u5373MaxEpochs\uff0c\u6700\u5927\u8fed\u4ee3\u6b21\u6570\n% MimiBatch\uff1a\u6279\u5c3a\u5bf8\n% GraThr\uff1a\u5373GradientThreshold\u68af\u5ea6\u6781\u9650\uff081\uff09\n% InitLearnRa\uff1a\u5373InitialLearnRate\u521d\u59cb\u5316\u5b66\u4e60\u901f\u7387\uff080.005\uff09\n% Plots\uff1a\u662f\u5426\u753b\u51fa\u8bad\u7ec3\u8fc7\u7a0b\uff0c1\u4e3a\u662f\uff0c\u5176\u4ed6\u503c\u4e3a\u5426\n% LearnSch\uff1a\u5373LearnRateSchedule\u662f\u5426\u5728\u4e00\u5b9a\u8fed\u4ee3\u6b21\u6570\u540e\u5b66\u4e60\u901f\u7387\u4e0b\u964d\uff0c1\u4e3a\u4f7f\u7528\uff0c LearnSch =&#039;piecewise&#039;\uff0c\u5176\u4ed6\u503c\u4e3a\u4e0d\u4f7f\u7528\n% LearnRaDP\uff1a\u5373LearnRateDropPeriod\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u65f6\u7684\u8fed\u4ee3\u6570\n% LearnRaDF\uff1a\u5373LearnRateDropFactor\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u56e0\u5b50\uff0c\u4e0b\u964d\u540e\u53d8\u4e3aLearnRaDF*InitLearnRa\uff0cLearnSch\u4e3a0\u65f6\u53ef\u4ee5\u8d4b0\n% NorFlag\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\n% rnnName\uff1a\u4f7f\u7528\u7684\u7f51\u7edc\u540d\u79f0\uff0c\u53ef\u9009\u9879\u5305\u62ec\uff1a&#039;GRU&#039;,&#039;LSTM&#039;,&#039;BiLSTM&#039;\uff0c\u6ce8\u610f\u5927\u5c0f\u5199\n% figflag\uff1a\u662f\u5426\u753b\u9884\u6d4b\u7ed3\u679c\u56fe\uff0c&#039;on&#039;\u4e3a\u753b\u56fe\uff0c&#039;off&#039;\u4e3a\u4e0d\u753b\n% rTrain\uff1a\u8bad\u7ec3\u96c6\u6bd4\u4f8b\/\u6570\u91cf\uff0crTrain&lt;1\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6bd4\u4f8b\uff0c&gt;1\u7684\u6574\u6570\u65f6\u4ee3\u8868\u8bad\u7ec3\u96c6\u6570\u91cf.\n% indNamesCell\uff1a\u62df\u8fdb\u884c\u9884\u6d4b\u8bc4\u4ef7\u6307\u6807\u540d\u79f0\uff0c\u8be5\u53d8\u91cf\u4e3acell\u7c7b\u578b\uff0c\u5176\u4e2d\u5305\u542b\u7684\u6307\u6807\u540d\u79f0\u4e3a\u5b57\u7b26\u4e32\uff0c\u6307\u6807\u540d\u79f0\u5728\u4e0b\u8fb9\u5217\u8868\u4e2d\uff1a\n%   \u76ee\u524d\u652f\u6301\u7684\u6307\u6807\uff082021.8.11\uff09\uff1a\n%   MSE\uff1a\u5747\u65b9\u8bef\u5dee\uff08Mean Square Error\uff09\n%   RMSE\uff1a\u5747\u65b9\u6839\u8bef\u5dee\uff08Root Mean Square Error\uff09\n%   MAE\uff1a\u5e73\u5747\u7edd\u5bf9\u8bef\u5dee\uff08Mean Absolute Error\uff09\n%   MAPE\uff1a\u5e73\u5747\u7edd\u5bf9\u767e\u5206\u6bd4\u8bef\u5dee\uff08Mean Absolute Percentage Error\uff09\n%   R2\uff1a\u51b3\u5b9a\u7cfb\u6570\uff08R2-R-Square\uff09\n%   \u5982\u679c\u60f3\u83b7\u53d6MSE\u3001MAE\u4e24\u4e2a\u6307\u6807\uff0c\u5219\u8bbe\u7f6e\uff1aindNamesCell = {&#039;MSE&#039;,&#039;MAE&#039;}\n\n% \u8f93\u51fa\uff1a\n% foreDataRe\uff1a\u9884\u6d4b\u503c\uff0c\u5bf9\u5e94\u6d4b\u8bd5\u96c6\u7684Y\u503c\n% info\uff1a\u8bad\u7ec3\u8fc7\u7a0b\u6570\u636e\uff0c\u5305\u62ecTrainingLoss\u3001TrainingRMSE\u3001BaseLearnRate\u7b49\n% ind\uff1a\u9884\u6d4b\u6548\u679c\u8bc4\u4ef7\u6307\u6807\u7ed3\u679c\u6570\u7ec4\uff0c\u5176\u8bc4\u4ef7\u6307\u6807\u503c\u987a\u5e8f\u4e0eindNamesCell\u4e00\u4e00\u5bf9\u5e94\n% net\uff1a\u8bad\u7ec3\u597d\u7684\u795e\u7ecf\u7f51\u7edc\n% YTrainRe\uff1a\u8bad\u7ec3\u96c6\u7684Y\u503c\n% YTestRe\uff1a\u6d4b\u8bd5\u96c6\u7684Y\u503c<\/code><\/pre>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>4.Fun_RNNs_Fore_Mul.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff09\uff0c\u5168\u90e8\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u9884\u6d4b\u672a\u6765\u6570\u636e\u3002\u8be5\u51fd\u6570\u5728\u56fe\u5f62\u754c\u9762\u8f6f\u4ef6\u4e2d\u8c03\u7528\uff0c\u662f\u5e95\u5c42\u5b9e\u73b0\u51fd\u6570\u4e4b\u4e09\u3002\u8be5\u6587\u4ef6\u4e3a\u51fd\u6570\u6587\u4ef6\uff0c\u9700\u8c03\u7528\uff0c\u4e0d\u80fd\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function [foreDataRe,info,net] = Fun_RNNs_Fore_Mul(data,PredNum,numHU,dropProb,MaxEp,MiniBatch,GraThr,InitLearnRa,Plots,LearnSch,LearnRaDP,LearnRaDF,NorFlag,SeedFlag,rnnName,figflag)\n% LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff09\uff0c\u5168\u90e8\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u9884\u6d4b\u672a\u6765\u6570\u636e\n% \u8f93\u5165\uff1a\n% data\uff1a\u8f93\u5165\u7684\u65f6\u95f4\u5e8f\u5217\u6570\u636e\uff0c\u7c7b\u578b\u4e3acell\u6216\u8005dat\n% PredNum\uff1a\u8981\u8fdb\u884c\u9884\u6d4b\u7684\u6b65\u6570\uff0c\u6b65\u957f\u5373\u8bad\u7ec3\u7528\u7684\u6570\u636e\u7684\u6b65\u957f\u3002\n% numHU\uff1a\u5373numHiddenUnits\uff0cLSTM\u7684\u9690\u542b\u5355\u5143\u6570\n% dropProb\uff1a\u4e22\u5f03\u5c42\u7684\u4e22\u5f03\u6982\u7387\uff0c\u5982\u679c\u4e0d\u4e22\u5f03\uff0c\u5219\u8bbe\u7f6e\u4e3a0\uff0c\u6700\u5927\u4e3a1\n% MaxEp\uff1a\u5373MaxEpochs\uff0c\u6700\u5927\u8fed\u4ee3\u6b21\u6570\n% MimiBatch\uff1a\u6279\u5c3a\u5bf8\n% GraThr\uff1a\u5373GradientThreshold\u68af\u5ea6\u6781\u9650\uff081\uff09\n% InitLearnRa\uff1a\u5373InitialLearnRate\u521d\u59cb\u5316\u5b66\u4e60\u901f\u7387\uff080.005\uff09\n% Plots\uff1a\u662f\u5426\u753b\u51fa\u8bad\u7ec3\u8fc7\u7a0b\uff0c1\u4e3a\u662f\uff0c\u5176\u4ed6\u503c\u4e3a\u5426\n% LearnSch\uff1a\u5373LearnRateSchedule\u662f\u5426\u5728\u4e00\u5b9a\u8fed\u4ee3\u6b21\u6570\u540e\u5b66\u4e60\u901f\u7387\u4e0b\u964d\uff0c1\u4e3a\u4f7f\u7528\uff0c LearnSch =&#039;piecewise&#039;\uff0c\u5176\u4ed6\u503c\u4e3a\u4e0d\u4f7f\u7528\n% LearnRaDP\uff1a\u5373LearnRateDropPeriod\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u65f6\u7684\u8fed\u4ee3\u6570\n% LearnRaDF\uff1a\u5373LearnRateDropFactor\u5b66\u4e60\u901f\u7387\u4e0b\u964d\u56e0\u5b50\uff0c\u4e0b\u964d\u540e\u53d8\u4e3aLearnRaDF*InitLearnRa\uff0cLearnSch\u4e3a0\u65f6\u53ef\u4ee5\u8d4b0\n% NorFlag\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\n% rnnName\uff1a\u4f7f\u7528\u7684\u7f51\u7edc\u540d\u79f0\uff0c\u53ef\u9009\u9879\u5305\u62ec\uff1a&#039;GRU&#039;,&#039;LSTM&#039;,&#039;BiLSTM&#039;\uff0c\u6ce8\u610f\u5927\u5c0f\u5199\n% figflag\uff1a\u662f\u5426\u753b\u9884\u6d4b\u7ed3\u679c\u56fe\uff0c&#039;on&#039;\u4e3a\u753b\u56fe\uff0c&#039;off&#039;\u4e3a\u4e0d\u753b\n\n% \u8f93\u51fa\uff1a\n% foreDataRe\uff1a\u9884\u6d4b\u503c\uff0c\u5bf9\u5e94\u6d4b\u8bd5\u96c6\u7684Y\u503c\n% info\uff1a\u8bad\u7ec3\u8fc7\u7a0b\u6570\u636e\uff0c\u5305\u62ecTrainingLoss\u3001TrainingRMSE\u3001BaseLearnRate\u7b49\n% net\uff1a\u8bad\u7ec3\u597d\u7684\u795e\u7ecf\u7f51\u7edc<\/code><\/pre>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>5.EvaForeEffect.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u7528\u4e8e\u8bc4\u4ef7\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u6548\u679c\u5404\u4e2a\u91cf\u5316\u6307\u6807\u7684\u901a\u7528\u51fd\u6570\u3002\u8be5\u6587\u4ef6\u4e3a\u51fd\u6570\u6587\u4ef6\uff0c\u9700\u8c03\u7528\uff0c\u4e0d\u80fd\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-matlab\">function ind = EvaForeEffect(realData,foreData,indNamesCell)\n% \u7528\u4e8e\u8bc4\u4ef7\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u6548\u679c\u5404\u4e2a\u91cf\u5316\u6307\u6807\u7684\u901a\u7528\u51fd\u6570\n% \u8f93\u5165\uff1a\n% realData\uff1a\u771f\u5b9e\u503c\n% foreData\uff1a\u9884\u6d4b\u503c\n% indNamesCell\uff1a\u62df\u8fdb\u884c\u9884\u6d4b\u8bc4\u4ef7\u6307\u6807\u540d\u79f0\uff0c\u8be5\u53d8\u91cf\u4e3acell\u7c7b\u578b\uff0c\u5176\u4e2d\u5305\u542b\u7684\u6307\u6807\u540d\u79f0\u4e3a\u5b57\u7b26\u4e32\uff0c\u6307\u6807\u540d\u79f0\u5728\u4e0b\u8fb9\u5217\u8868\u4e2d\uff1a\n% \u76ee\u524d\u652f\u6301\u7684\u6307\u6807\uff082021.12.5\uff09\uff1a\n% MSE\uff1a\u5747\u65b9\u8bef\u5dee\uff08Mean Square Error\uff09\n% RMSE\uff1a\u5747\u65b9\u6839\u8bef\u5dee\uff08Root Mean Square Error\uff09\n% MAE\uff1a\u5e73\u5747\u7edd\u5bf9\u8bef\u5dee\uff08Mean Absolute Error\uff09\n% MAPE\uff1a\u5e73\u5747\u7edd\u5bf9\u767e\u5206\u6bd4\u8bef\u5dee\uff08Mean Absolute Percentage Error\uff09\n% R2\uff1a\u51b3\u5b9a\u7cfb\u6570\uff08R2-R-Square\uff09\n% R\uff1a\u76f8\u5173\u7cfb\u6570\n% \u5982\u679c\u60f3\u83b7\u53d6MSE\u3001MAE\u4e24\u4e2a\u6307\u6807\uff0c\u5219\u8bbe\u7f6e\uff1aindNamesCell = {&#039;MSE&#039;,&#039;MAE&#039;}\n% \u8f93\u51fa\uff1a\n% ind\uff1a\u9884\u6d4b\u6548\u679c\u8bc4\u4ef7\u6307\u6807\u7ed3\u679c\u6570\u7ec4\uff0c\u5176\u8bc4\u4ef7\u6307\u6807\u503c\u987a\u5e8f\u4e0eindNamesCell\u4e00\u4e00\u5bf9\u5e94<\/code><\/pre>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>6.demo_RNNs_Fore_Onestep_TrainAndTest.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6d4b\u8bd5Fun_RNNs_Fore_Onestep_TrainAndTest\u6587\u4ef6\u7684\u811a\u672c\uff0c\u6f14\u793a\u4e86LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u5355\u6b65\uff09\u7684\u7eaf\u4ee3\u7801\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>7.demo_RNNs_Fore_Mul_TrainAndTest.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6d4b\u8bd5Fun_RNNs_Fore_Mul_TrainAndTest\u6587\u4ef6\u7684\u811a\u672c\uff0c\u6f14\u793a\u4e86LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff0c\u5212\u5206\u8bad\u7ec3\u96c6\/\u6d4b\u8bd5\u96c6\uff09\u7684\u7eaf\u4ee3\u7801\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>8.demo_RNNs_Fore_Mul.m\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6d4b\u8bd5Fun_RNNs_Fore_Mul\u6587\u4ef6\u7684\u811a\u672c\uff0c\u6f14\u793a\u4e86LSTM\/BiLSTM\/GRU\u795e\u7ecf\u7f51\u7edc\u505a\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u201c\u9884\u6d4b\u201d\u7684\u7a0b\u5e8f\uff08\u591a\u6b65\uff0c\u5168\u90e8\u6570\u636e\u7528\u6765\u8bad\u7ec3\uff0c\u9884\u6d4b\u672a\u6765\u6570\u636e\uff09\u7684\u7eaf\u4ee3\u7801\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>9.chickenpox.mat\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u6f14\u793a\u6848\u4f8b\u4e2d\u4f7f\u7528\u7684\u6d4b\u8bd5\u6570\u636e\uff0c\u8fd9\u662f\u4e00\u4e2a\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u96c6\uff0c\u8bb0\u5f55\u4e86\u4e00\u6bb5\u65f6\u95f4\u5185\u5728\u67d0\u4e00\u5730\u533a\u6bcf\u6708\u62a5\u544a\u7684\u6c34\u75d8\u75c5\u4f8b\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u516b\u3001\u91cd\u8981\u66f4\u65b0<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>20230523 \uff08\u91cd\u5927\u66f4\u65b0\uff09\u52a0\u5165BiLSTM\/GRU\u7f51\u7edc\uff1b\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u9690\u85cf\u5c42\uff1b\u52a0\u5165\u4e22\u5f03\u5c42\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e22\u5f03\u5c42\u6982\u7387\uff1b\u52a0\u5165\u7ed8\u5236\u72ec\u7acb\u7a97\u53e3\u56fe\u7247\u529f\u80fd\uff1b\u8bc4\u4ef7\u6307\u6807\u589e\u52a0MSE\u3001MAE\u548cR\uff1b<strong>\u4fee\u590d\u90e8\u5206\u5df2\u77e5bug\uff1b<\/strong>\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u6539\u4ee3\u7801\u7684\u540c\u5b66\u53ef\u4ee5\u8054\u7cfb\u8001\u677f\u514d\u8d39\u83b7\u53d6\u66f4\u65b0~<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">20210908 \u73b0\u5728\u53ef\u4ee5\u5bfc\u51fa\u8bad\u7ec3\u8fc7\u7a0b\u7684Loss\u66f2\u7ebf\u503c\u3001RMSE\u66f2\u7ebf\u503c\u548c\u5b66\u4e60\u7387\u503c\uff08\u9700\u8981MATLAB2020\u53ca\u4ee5\u4e0a\u7248\u672c\uff09<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">20201027 \u521d\u59cb\u7248\u672c\uff08\u8bd5\u7528\u7248\u7248\u672c\uff09<\/p>\n\n\n\n<p class=\"is-style-iw-2em has-white-color has-text-color\">\u52a0\u5165BiLSTM\/GRU\u7f51\u7edc\uff1b\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u9690\u85cf\u5c42\uff1b\u52a0\u5165\u4e22\u5f03\u5c42\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e22\u5f03\u5c42\u6982\u7387\uff1b\u52a0\u5165\u7ed8\u5236\u72ec\u7acb\u7a97\u53e3\u56fe\u7247\u529f\u80fd\uff1b\u4fee\u590d\u90e8\u5206\u5df2\u77e5bug\uff1b\u8bc4\u4ef7\u6307\u6807\u589e\u52a0MSE\u3001MAE\u548cR\uff1b\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u6539\u4ee3\u7801\u7684\u540c\u5b66\u53ef\u4ee5\u8054\u7cfb\u8001\u677f\u514d\u8d39\u83b7\u53d6\u66f4\u65b0~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\u662f\u4e13\u4e3a\u4f7f\u7528LSTM\/BiLSTM\/GRU\u7b49RNN\u65b9\u6cd5\u8fdb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2676,"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>LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863<\/title>\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\/2020\/10\/25\/lstm\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"og:description\" content=\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\u662f\u4e13\u4e3a\u4f7f\u7528LSTM\/BiLSTM\/GRU\u7b49RNN\u65b9\u6cd5\u8fdb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\" \/>\n<meta property=\"og:site_name\" content=\"\u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-25T13:39:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-08T14:29:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1098\" \/>\n\t<meta property=\"og:image:height\" content=\"646\" \/>\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=\"4 \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\/2020\/10\/25\/lstm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\"},\"author\":{\"name\":\"kuohao\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"headline\":\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09\",\"datePublished\":\"2020-10-25T13:39:27+00:00\",\"dateModified\":\"2025-07-08T14:29:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\"},\"wordCount\":157,\"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\/2020\/10\/25\/lstm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\",\"url\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\",\"name\":\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#website\"},\"datePublished\":\"2020-10-25T13:39:27+00:00\",\"dateModified\":\"2025-07-08T14:29:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.khsci.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09\"}]},{\"@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":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863","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\/2020\/10\/25\/lstm\/","og_locale":"zh_CN","og_type":"article","og_title":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863","og_description":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\u662f\u4e13\u4e3a\u4f7f\u7528LSTM\/BiLSTM\/GRU\u7b49RNN\u65b9\u6cd5\u8fdb [&hellip;]","og_url":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/","og_site_name":"\u5de5\u5177\u7bb1\u6587\u6863","article_published_time":"2020-10-25T13:39:27+00:00","article_modified_time":"2025-07-08T14:29:38+00:00","og_image":[{"width":1098,"height":646,"url":"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-38.png","type":"image\/png"}],"author":"kuohao","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"kuohao","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/#article","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/"},"author":{"name":"kuohao","@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"headline":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09","datePublished":"2020-10-25T13:39:27+00:00","dateModified":"2025-07-08T14:29:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/"},"wordCount":157,"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\/2020\/10\/25\/lstm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/","url":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/","name":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09 - \u5de5\u5177\u7bb1\u6587\u6863","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/#website"},"datePublished":"2020-10-25T13:39:27+00:00","dateModified":"2025-07-08T14:29:38+00:00","breadcrumb":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2020\/10\/25\/lstm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.khsci.com\/docs\/"},{"@type":"ListItem","position":2,"name":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u56fe\u5f62\u754c\u9762\u7248\u8f6f\u4ef6\uff08\u516c\u5f00\u7248\uff09"}]},{"@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\/370"}],"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=370"}],"version-history":[{"count":27,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":3765,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/370\/revisions\/3765"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media\/2676"}],"wp:attachment":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}