{"id":2709,"date":"2023-05-29T23:12:27","date_gmt":"2023-05-29T15:12:27","guid":{"rendered":"http:\/\/103.118.41.220\/docs\/?p=2709"},"modified":"2024-04-07T21:48:27","modified_gmt":"2024-04-07T13:48:27","slug":"rnn_code","status":"publish","type":"post","link":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/","title":{"rendered":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09"},"content":{"rendered":"\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\">\u9700\u4f7f\u7528MATLAB2020a\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=\"339\" height=\"151\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-39.png\" alt=\"\" class=\"wp-image-2712\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-39.png 339w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-39-300x134.png 300w\" sizes=\"(max-width: 339px) 100vw, 339px\" \/><\/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 has-luminous-vivid-orange-color has-text-color\"><strong>1.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\">\u8fd0\u884c\u7a0b\u5e8f\u540e\uff0c\u5c06\u4f1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u8f93\u51fa\u8fed\u4ee3\u8fc7\u7a0b\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"244\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40.png\" alt=\"\" class=\"wp-image-2714\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40.png 818w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40-300x89.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40-768x229.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">\u540c\u65f6\u4f1a\u7ed8\u5236\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684Loss\u548cRMSE\u66f2\u7ebf\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1024x542.png\" alt=\"\" class=\"wp-image-2715\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1024x542.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-300x159.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-768x407.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1536x813.png 1536w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41.png 1736w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">\u5e76\u7ed8\u5236\u591a\u6b65\u9884\u6d4b\u7ed3\u679c\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"412\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43.png\" alt=\"\" class=\"wp-image-2717\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43.png 532w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43-300x232.png 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em has-luminous-vivid-orange-color has-text-color\"><strong>2.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\">\u8fd0\u884c\u7a0b\u5e8f\u540e\uff0c\u5c06\u4f1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u8f93\u51fa\u8fed\u4ee3\u8fc7\u7a0b\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"244\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40.png\" alt=\"\" class=\"wp-image-2714\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40.png 818w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40-300x89.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-40-768x229.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">\u540c\u65f6\u4f1a\u7ed8\u5236\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684Loss\u548cRMSE\u66f2\u7ebf\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1024x542.png\" alt=\"\" class=\"wp-image-2715\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1024x542.png 1024w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-300x159.png 300w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-768x407.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41-1536x813.png 1536w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-41.png 1736w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">\u5e76\u7ed8\u5236\u591a\u6b65\u9884\u6d4b\u7ed3\u679c\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"412\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43.png\" alt=\"\" class=\"wp-image-2717\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43.png 532w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/05\/image-43-300x232.png 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em has-luminous-vivid-orange-color has-text-color\"><strong>3.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>1.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>2.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>3.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>4.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>8.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\">\u4e09\u3001\u5feb\u901f\u5f00\u59cb<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>1.\u8fd0\u884c\u6d4b\u8bd5\u811a\u672c<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u5148\u5728MATLAB\u91cc\u6253\u5f00\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd0\u884c<strong>demo_RNNs_Fore_Mul.m\u3001demo_RNNs_Fore_Mul_TrainAndTest.m\u3001demo_RNNs_Fore_Onestep_TrainAndTest<\/strong>\u7a0b\u5e8f\uff0c\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6bd5\u540e\u5982\u679c\u6ca1\u62a5\u9519\uff0c\u4e14\u6b63\u5e38\u753b\u51fa\u9884\u6d4b\u7ed3\u679c\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\"><strong>2.\u4fee\u6539\u4eff\u771f\u6570\u636e\/\u5bfc\u5165\u6570\u636e<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u4ee5<strong><strong>\u5168\u90e8\u6570\u636e\u7528\u4e8e\u9884\u6d4b<\/strong><\/strong>\u4e3a\u4f8b\uff0c\u6b64\u65b9\u6cd5\u5728<strong><strong>demo_RNNs_Fore_Mul<\/strong>.m<\/strong>\u4e2d\u6f14\u793a\uff1a<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u590d\u5236\u4e00\u4e2a<strong><strong><strong>demo_RNNs_Fore_Mul<\/strong><\/strong>.m<\/strong>\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\">\uff081\uff09\u7b2c\u4e00\u79cd\u60c5\u51b5\uff0c\u4f60\u53ef\u80fd\u60f3\u8981\u5bf9\u4f60\u81ea\u5df1\u8981\u7814\u7a76\u7684<strong>\u4eff\u771f\u6570\u636e<\/strong>\u8fdb\u884c\u6ee4\u6ce2\u6d4b\u8bd5\uff0c\u6b64\u65f6\u4f60\u9700\u8981\u5bf9&nbsp;<strong><strong><strong>demo_RNNs_Fore_Mul<\/strong><\/strong>.m<\/strong>&nbsp;\u811a\u672c\u6587\u4ef6\u4e2d\u7684\u7b2c1\u5c0f\u8282\u5185\u5bb9\u8fdb\u884c\u4fee\u6539\u66ff\u6362\u5373\u53ef\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8bf7\u6700\u597d<strong>\u4fdd\u6301\u53d8\u91cf\u540d\u7684\u4e00\u81f4<\/strong>\uff0c\u5373\u5c06\u5f85\u9884\u6d4b\u6570\u636e\u547d\u540d\u4e3adata\uff0cdata\u5e94\u8be5\u662f\u4e00\u7ef4\u6570\u636e\u3002\u6b64\u65f6\u6570\u636e\u66ff\u6362\u5b8c\u6210\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\uff082\uff09\u7b2c\u4e8c\u79cd\u60c5\u51b5\uff0c\u4f60\u53ef\u80fd\u662f\u60f3\u5bf9\u4e00\u6bb5<strong>\u771f\u5b9e<\/strong>\u7684\u6570\u636e\u8fdb\u884c\u6ee4\u6ce2\uff0c\u6b64\u65f6\u9700\u8981\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<strong>\u5bfc\u5165\u5b8c\u6210\u540e\u8bf7\u5c06\u8fd9\u4e2a\u6570\u636e\u547d\u540d\u4e3adata<\/strong>\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>3.\u5b9e\u73b0\u9884\u6d4b<\/strong><\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u53c2\u7167&nbsp;<strong><strong><strong>demo_RNNs_Fore_Mul<\/strong><\/strong><\/strong>.m\u6587\u4ef6\u4e2d\u7b2c\u4e8c\u6b65\uff0c\u6839\u636e\u9700\u8981\u8c03\u6574<strong>\u76f8\u5173\u53c2\u6570<\/strong>\u3002<\/p>\n\n\n\n<p class=\"is-style-iw-2em\">\u8fd0\u884c\u7a0b\u5e8f\u5373\u53ef\u3002<\/p>\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<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u53ef\u5bfc\u51fa\u9884\u6d4b\u7ed3\u679c\u6570\u636e\u3001\u8bad\u7ec3\u597d\u7684\u7f51\u7edcnet\u3001\u8bad\u7ec3\u8fc7\u7a0b\u6570\u636e\u7b49<\/td><td>\u221a<\/td><td>\u00d7<\/td><\/tr><tr><td>\u5206\u6790\u6570\u636edata\u7684\u6570\u636e\u957f\u5ea6<\/td><td>\u65e0\u9650\u5236<\/td><td>500\u4ee5\u5185<\/td><\/tr><tr><td>\u9884\u6d4b\u56fe\u65e0\u6c34\u5370<\/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><\/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<div class=\"wpfd-single-file\">\n\n    <div class=\"wpfd-single-file--details wpfd-file-content\">\n                <h3 class=\"wpfd-file-content--title\">LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u516c\u5f00\u7248\u4ee3\u7801(\u7eaf\u4ee3\u7801\u7248)<\/h3>\n        <div class=\"wpfd-file-content--meta\">\n                    <div>\u6587\u4ef6\u5c3a\u5bf8: 40.26 KB<\/div>\n                    <div>\u66f4\u65b0: 18-06-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\/2810\/lstm-bilstm-gru%e6%97%b6%e9%97%b4%e5%ba%8f%e5%88%97%e9%a2%84%e6%b5%8b%e5%85%ac%e5%bc%80%e7%89%88%e4%bb%a3%e7%a0%81%e7%ba%af%e4%bb%a3%e7%a0%81%e7%89%88-2.zip\"  data-id=\"2810\" title=\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u516c\u5f00\u7248\u4ee3\u7801(\u7eaf\u4ee3\u7801\u7248)\" 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\">\u6ce8\uff1a\u516c\u5f00\u7248\u4ee3\u7801\u9700\u4f7f\u7528MATLAB2022a\u53ca\u4ee5\u4e0a\u7248\u672c<\/p>\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\">\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\"><strong>\u83b7\u53d6\u901a\u9053\u4e00\uff08\u6dd8\u5b9d\uff09\uff1a<\/strong><a href=\"https:\/\/item.taobao.com\/item.htm?id=722338067145\">\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\u970088\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<p><p><div class=\"erphp-wppay\">\n\t\t\t\t\u60a8\u9700\u8981\u5148\u652f\u4ed8 <b>88\u5143<\/b> \u624d\u80fd\u67e5\u770b\u6b64\u5904\u5185\u5bb9\uff01<a href=\"javascript:;\" class=\"erphp-wppay-loader\" data-post=\"2709\">\u7acb\u5373\u652f\u4ed8<\/a>\n\t\t\t<\/div><\/p><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4e94\u3001\u91cd\u8981\u66f4\u65b0\">\u4e03\u3001\u5b8c\u6574\u7248\u4ee3\u7801\u91cd\u8981\u66f4\u65b0<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\">20230601 \u5b8c\u6210\u521d\u7248\u4ee3\u7801<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u516b\u3001\u5e38\u89c1\u95ee\u9898<\/h4>\n\n\n\n<p class=\"is-style-iw-2em\"><strong>\u95ee\u98981.\u8fd0\u884c\u4ee3\u7801\u63d0\u793a\u4e0b\u56fe\u8b66\u544a\u662f\u600e\u4e48\u56de\u4e8b\uff1f<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"283\" src=\"https:\/\/khsci.com\/docs\/wp-content\/uploads\/2023\/06\/image.png\" alt=\"\" class=\"wp-image-2729\" srcset=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/06\/image.png 768w, https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/06\/image-300x111.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p class=\"is-style-iw-2em\">\u56de\u7b541\uff1a\u8fd9\u4e2a\u8b66\u544a\u662f\u7531\u4e8e\u4f60\u7684CUDA\u9a71\u52a8\u9700\u8981\u91cd\u65b0\u7f16\u8bd1GPU\u5e93\uff0c\u56e0\u4e3a\u4f60\u7684\u8bbe\u5907\u6bd4\u5e93\u66f4\u65b0\uff0c\u90a3\u4e48\u4f60\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u8fd9\u4e2a\u91cd\u65b0\u7f16\u8bd1\u8fc7\u7a0b\u5b8c\u6210\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u901a\u5e38\u9700\u89815-10\u5206\u949f\uff0c\u5f85\u5e93\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u518d\u8fd0\u884c\u4ee3\u7801\u5c31\u4e0d\u4f1a\u7b49\u8fd9\u4e48\u4e45\u4e86\u3002\u4f46\u662f\u5173\u6389MATLAB\u91cd\u65b0\u8fd0\u884c\u7a0b\u5e8f\uff0c\u7b2c\u4e00\u6b21\u8fd8\u662f\u8981\u7b49\u5f85\u8fd9\u4e48\u4e45\u3002\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u529e\u6cd5\u5c31\u662f\u4f7f\u7528\u65b0\u7248\u672c\u7684MATLAB\uff0c\u6bd4\u59822022\u6216\u80052023\u7248\u5c31\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4ee3\u7801\u8fd0\u884c\u73af\u5883 \u9700\u4f7f\u7528MATLAB2020a\u53ca\u66f4\u65b0\u7248\u672c\u3002 \u4e8c\u3001\u7a0b\u5e8f\u4ecb\u7ecd \u6ce8\uff1a\u56fe\u6807\u4ee3\u8868\u8be5m\u6587\u4ef6\u4e3a\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2729,"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\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\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\/2023\/05\/29\/rnn_code\/\" \/>\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\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09 - \u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u4ee3\u7801\u8fd0\u884c\u73af\u5883 \u9700\u4f7f\u7528MATLAB2020a\u53ca\u66f4\u65b0\u7248\u672c\u3002 \u4e8c\u3001\u7a0b\u5e8f\u4ecb\u7ecd \u6ce8\uff1a\u56fe\u6807\u4ee3\u8868\u8be5m\u6587\u4ef6\u4e3a\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\" \/>\n<meta property=\"og:site_name\" content=\"\u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-29T15:12:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-07T13:48:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/06\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"283\" \/>\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\/05\/29\/rnn_code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\"},\"author\":{\"name\":\"kuohao\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"headline\":\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09\",\"datePublished\":\"2023-05-29T15:12:27+00:00\",\"dateModified\":\"2024-04-07T13:48:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\"},\"wordCount\":148,\"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\/05\/29\/rnn_code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\",\"url\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\",\"name\":\"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09 - \u5de5\u5177\u7bb1\u6587\u6863\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#website\"},\"datePublished\":\"2023-05-29T15:12:27+00:00\",\"dateModified\":\"2024-04-07T13:48:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/#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\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\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\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\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\/2023\/05\/29\/rnn_code\/","og_locale":"zh_CN","og_type":"article","og_title":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09 - \u5de5\u5177\u7bb1\u6587\u6863","og_description":"\u4e00\u3001\u4ee3\u7801\u8fd0\u884c\u73af\u5883 \u9700\u4f7f\u7528MATLAB2020a\u53ca\u66f4\u65b0\u7248\u672c\u3002 \u4e8c\u3001\u7a0b\u5e8f\u4ecb\u7ecd \u6ce8\uff1a\u56fe\u6807\u4ee3\u8868\u8be5m\u6587\u4ef6\u4e3a\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5 [&hellip;]","og_url":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/","og_site_name":"\u5de5\u5177\u7bb1\u6587\u6863","article_published_time":"2023-05-29T15:12:27+00:00","article_modified_time":"2024-04-07T13:48:27+00:00","og_image":[{"width":768,"height":283,"url":"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2023\/06\/image.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\/05\/29\/rnn_code\/#article","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/"},"author":{"name":"kuohao","@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"headline":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09","datePublished":"2023-05-29T15:12:27+00:00","dateModified":"2024-04-07T13:48:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/"},"wordCount":148,"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\/05\/29\/rnn_code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/","url":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/","name":"LSTM\/BiLSTM\/GRU\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\uff09 - \u5de5\u5177\u7bb1\u6587\u6863","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/#website"},"datePublished":"2023-05-29T15:12:27+00:00","dateModified":"2024-04-07T13:48:27+00:00","breadcrumb":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2023\/05\/29\/rnn_code\/#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\u7a0b\u5e8f\uff08\u7eaf\u4ee3\u7801\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\/2709"}],"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=2709"}],"version-history":[{"count":12,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/2709\/revisions"}],"predecessor-version":[{"id":3388,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/2709\/revisions\/3388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media\/2729"}],"wp:attachment":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media?parent=2709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/categories?post=2709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/tags?post=2709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}