{"id":3894,"date":"2026-07-19T20:26:13","date_gmt":"2026-07-19T12:26:13","guid":{"rendered":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/"},"modified":"2026-07-19T21:14:32","modified_gmt":"2026-07-19T13:14:32","slug":"cnn-rnn-forecast-python","status":"publish","type":"post","link":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/","title":{"rendered":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801"},"content":{"rendered":"\n<p>\u672c\u6587\u4ecb\u7ecd\u4e00\u5957 Python \u7248 CNN-RNN \u6df7\u5408\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4ee3\u7801\u3002\u7a0b\u5e8f\u4ee5 <code>chickenpox.mat<\/code> \u4e2d\u7684\u4e00\u7ef4\u6708\u5ea6\u65f6\u95f4\u5e8f\u5217\u4f5c\u4e3a\u6f14\u793a\u6848\u4f8b\uff0c\u5c01\u88c5\u4e86\u5355\u6b65\u9884\u6d4b\u548c\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u4e24\u4e2a\u5165\u53e3\uff0c\u9002\u5408\u7528\u4e8e\u4e00\u7ef4\u6709\u5e8f\u6570\u636e\u7684\u8d8b\u52bf\u9884\u6d4b\u3001\u5468\u671f\u9884\u6d4b\u548c\u8fde\u7eed\u6570\u503c\u9884\u6d4b\u3002<\/p>\n\n\n\n<ul>\n<li>\u4f7f\u7528 chickenpox \u6708\u5ea6\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u4f5c\u4e3a\u6f14\u793a\u6848\u4f8b\u3002<\/li>\n<li>\u53ef\u4ee5\u81ea\u7531\u8bbe\u7f6e\u6ed1\u52a8\u7a97\u53e3\u957f\u5ea6\u3001CNN \u5377\u79ef\u5c42\u901a\u9053\u6570\u3001\u5377\u79ef\u6838\u5927\u5c0f\u3001\u6c60\u5316\u7a97\u53e3\u3001RNN \u7c7b\u578b\u548c\u9690\u85cf\u5355\u5143\u6570\u3002<\/li>\n<li>Python \u7248 RNN \u5c42\u652f\u6301 RNN\u3001LSTM\u3001GRU\u3001BiLSTM\u3001BiGRU \u4e94\u79cd\u7ed3\u6784\u3002<\/li>\n<li>\u53ef\u6309\u65f6\u95f4\u987a\u5e8f\u5feb\u901f\u5212\u5206\u8bad\u7ec3+\u9a8c\u8bc1\u6570\u636e\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\uff0c\u907f\u514d\u6570\u636e\u6cc4\u9732\u3002<\/li>\n<li>\u7a0b\u5e8f\u8fd0\u884c\u540e\u81ea\u52a8\u7ed8\u5236\u6536\u655b\u8fc7\u7a0b\u3001\u8bad\u7ec3\u96c6\u9884\u6d4b\u7ed3\u679c\u3001\u9a8c\u8bc1\u96c6\u9884\u6d4b\u7ed3\u679c\u3001\u6d4b\u8bd5\u96c6\u9884\u6d4b\u7ed3\u679c\u3001\u6d4b\u8bd5\u6bb5\u9012\u5f52\u9884\u6d4b\u56fe\u3001MAE\/MSE\/MAPE\/RMSE\/R\u00b2\/R \u7b49\u6307\u6807\u5bf9\u6bd4\u56fe\u3002<\/li>\n<li>\u652f\u6301 CPU\/GPU \u81ea\u52a8\u9009\u62e9\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u6307\u5b9a\u8bad\u7ec3\u8bbe\u5907\u3002<\/li>\n<li>\u9700\u8981\u4f60\u505a\u7684\u4e3b\u8981\u662f\u5bfc\u5165\u81ea\u5df1\u7684\u65f6\u95f4\u5e8f\u5217\u3001\u8bbe\u7f6e\u7a97\u53e3\u957f\u5ea6\u3001\u7f51\u7edc\u7ed3\u6784\u548c\u8bad\u7ec3\u53c2\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e00\u3001\u4ee3\u7801\u8fd0\u884c\u73af\u5883<\/h4>\n\n\n\n<p>\u63a8\u8350\u8fd0\u884c\u73af\u5883\u4e3a\uff1aVSCode + Anaconda + Python 3.11 + PyTorch\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528\u73b0\u6709\u73af\u5883\uff0c\u9700\u8981\u5b89\u88c5\u4f9d\u8d56\u5305\u3002\u5b8c\u6574\u7248\u4ee3\u7801\u4e2d\u63d0\u4f9b\u4e86 <code>requirements.txt<\/code>\uff0c\u53ef\u5728\u4ee3\u7801\u6587\u4ef6\u5939\u4e2d\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<p>\u4e3b\u8981\u4f9d\u8d56\u5305\u62ec\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-text\">numpy\nscipy\nmatplotlib\ntorch\nscikit-learn<\/code><\/pre>\n\n\n\n<p>\u516c\u5f00\u7248\u76ee\u524d\u9002\u7528\u4e8e Windows 64 \u4f4d + Python 3.11 \u73af\u5883\uff0c\u5efa\u8bae\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u8fd0\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e8c\u3001\u7a0b\u5e8f\u4ecb\u7ecd<\/h4>\n\n\n\n<p>\u5b8c\u6574\u7248\u4ee3\u7801\u6587\u4ef6\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-text\">CNN_RNNs_Forecast\/\n\u251c\u2500\u2500 demoCNNRNNsForecast.py\n\u251c\u2500\u2500 demoCNNRNNsForecastMul.py\n\u251c\u2500\u2500 FunCNNRNNsForecast.py\n\u251c\u2500\u2500 FunCNNRNNsForecastMul.py\n\u251c\u2500\u2500 EvaForeEffect.py\n\u251c\u2500\u2500 chickenpox.mat\n\u251c\u2500\u2500 requirements.txt\n\u251c\u2500\u2500 figure\/\n\u2514\u2500\u2500 \u4ee3\u7801\u8bf4\u660e.txt<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">1. demoCNNRNNsForecast.py \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8be5\u811a\u672c\u6f14\u793a CNN-RNN \u6df7\u5408\u6a21\u578b\u7684\u5355\u6b65\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u6d41\u7a0b\u3002\u6240\u8c13\u5355\u6b65\u9884\u6d4b\uff0c\u5c31\u662f\u7528\u524d <code>lookBack<\/code> \u4e2a\u5386\u53f2\u70b9\u9884\u6d4b\u7d27\u63a5\u7740\u7684\u4e0b\u4e00\u4e2a\u70b9\uff1b\u6d4b\u8bd5\u9636\u6bb5\u6bcf\u4e2a\u6837\u672c\u4ecd\u7136\u4f7f\u7528\u771f\u5b9e\u5386\u53f2\u7a97\u53e3\u4f5c\u4e3a\u8f93\u5165\u3002<\/p>\n\n\n\n<p>\u811a\u672c\u4e3b\u8981\u5b8c\u6210\u4e09\u4ef6\u4e8b\uff1a\u52a0\u8f7d <code>chickenpox.mat<\/code> \u6570\u636e\uff0c\u8bbe\u7f6e <code>options<\/code> \u53c2\u6570\uff0c\u7136\u540e\u8c03\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">fore_data, fore_data_train, fore_data_val, model, info = FunCNNRNNsForecast(data, options)<\/code><\/pre>\n\n\n\n<p>\u7a0b\u5e8f\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u4f1a\u81ea\u52a8\u5728 <code>figure\/<\/code> \u6587\u4ef6\u5939\u4e0b\u4fdd\u5b58\u5982\u4e0b\u56fe\u50cf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-single-loss.png\" alt=\"Python \u5355\u6b65\u9884\u6d4b\u6536\u655b\u8fc7\u7a0b\"\/><\/figure>\n\n\n\n<p>\u56fe 1 \u5c55\u793a\u8bad\u7ec3\u635f\u5931\u548c\u9a8c\u8bc1\u635f\u5931\u7684\u53d8\u5316\u3002\u7a0b\u5e8f\u4f1a\u76d1\u63a7\u9a8c\u8bc1\u635f\u5931\uff0c\u5e76\u5728\u957f\u671f\u6ca1\u6709\u6539\u5584\u65f6\u89e6\u53d1\u65e9\u505c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-single-test.png\" alt=\"Python \u5355\u6b65\u6d4b\u8bd5\u96c6\u9884\u6d4b\u7ed3\u679c\"\/><\/figure>\n\n\n\n<p>\u56fe 2 \u5c55\u793a\u5355\u6b65\u9884\u6d4b\u6a21\u5f0f\u4e0b\u6d4b\u8bd5\u96c6\u771f\u5b9e\u503c\u4e0e\u9884\u6d4b\u503c\u7684\u5bf9\u6bd4\uff0c\u4ee5\u53ca\u5bf9\u5e94\u7684\u76f8\u5bf9\u8bef\u5dee\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">2. demoCNNRNNsForecastMul.py \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8be5\u811a\u672c\u6f14\u793a CNN-RNN \u6df7\u5408\u6a21\u578b\u7684\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u6d41\u7a0b\u3002\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u4f1a\u5148\u9884\u6d4b\u6d4b\u8bd5\u6bb5\u7b2c\u4e00\u4e2a\u70b9\uff0c\u518d\u628a\u9884\u6d4b\u503c\u653e\u56de\u5386\u53f2\u7a97\u53e3\uff0c\u7ee7\u7eed\u9884\u6d4b\u7b2c\u4e8c\u4e2a\u70b9\uff0c\u76f4\u5230\u5b8c\u6210\u6574\u6bb5\u6d4b\u8bd5\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u811a\u672c\u8c03\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">fore_data, fore_data_train, fore_data_val, model, info = FunCNNRNNsForecastMul(data, options)<\/code><\/pre>\n\n\n\n<p>Python \u591a\u6b65\u7248\u91c7\u7528\u201c\u57fa\u51c6\u503c + \u6a21\u578b\u6b8b\u5dee\u201d\u7684\u65b9\u5f0f\u8fdb\u884c\u9012\u5f52\u9884\u6d4b\uff1a\u6a21\u578b\u4e0d\u76f4\u63a5\u6b7b\u8bb0\u5b8c\u6574\u6570\u503c\uff0c\u800c\u662f\u5b66\u4e60\u76f8\u5bf9\u5b63\u8282\u57fa\u51c6\u6216\u6700\u8fd1\u70b9\u7684\u4fee\u6b63\u91cf\uff0c\u8fd9\u6837\u53ef\u4ee5\u51cf\u8f7b\u591a\u6b65\u9884\u6d4b\u4e2d\u7684\u6f02\u79fb\u95ee\u9898\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-multi-test.png\" alt=\"Python \u591a\u6b65\u9012\u5f52\u6d4b\u8bd5\u7ed3\u679c\"\/><\/figure>\n\n\n\n<p>\u56fe 3 \u5c55\u793a\u6d4b\u8bd5\u6bb5\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u6548\u679c\u3002\u5b83\u6bd4\u5355\u6b65\u9884\u6d4b\u66f4\u96be\uff0c\u56e0\u4e3a\u540e\u7eed\u8f93\u5165\u4f1a\u5305\u542b\u6a21\u578b\u81ea\u5df1\u524d\u9762\u9884\u6d4b\u51fa\u6765\u7684\u503c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-metrics.png\" alt=\"Python \u8bc4\u4ef7\u6307\u6807\u5bf9\u6bd4\"\/><\/figure>\n\n\n\n<p>\u56fe 4 \u5c55\u793a\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u548c\u6d4b\u8bd5\u96c6\u4e0a\u7684 MAE\u3001MSE\u3001RMSE\u3001MAPE\u3001R\u00b2\u3001R \u7b49\u6307\u6807\uff0c\u7528\u4e8e\u5224\u65ad\u6a21\u578b\u6cdb\u5316\u8868\u73b0\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">3. FunCNNRNNsForecast.py \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8be5\u6587\u4ef6\u5305\u542b\u5355\u6b65\u9884\u6d4b\u6838\u5fc3\u51fd\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">fore_data, fore_data_train, fore_data_val, model, info = FunCNNRNNsForecast(data, options)<\/code><\/pre>\n\n\n\n<p>\u8f93\u5165\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<ul>\n<li><code>data<\/code>\uff1a\u4e00\u7ef4\u6709\u5e8f\u65f6\u95f4\u5e8f\u5217\uff0c\u53ef\u4ee5\u662f list\u3001tuple\u3001numpy \u6570\u7ec4\u7b49\u53ef\u8fed\u4ee3\u6570\u636e\u3002<\/li>\n<li><code>options<\/code>\uff1a\u53c2\u6570\u5b57\u5178\uff0c\u53ef\u4e0d\u4f20\u3002\u4e0d\u4f20\u65f6\u4f7f\u7528\u9ed8\u8ba4\u53c2\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8f93\u51fa\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<ul>\n<li><code>fore_data<\/code>\uff1a\u6d4b\u8bd5\u96c6\u9884\u6d4b\u503c\u3002<\/li>\n<li><code>fore_data_train<\/code>\uff1a\u8bad\u7ec3\u96c6\u9884\u6d4b\u503c\u3002<\/li>\n<li><code>fore_data_val<\/code>\uff1a\u9a8c\u8bc1\u96c6\u9884\u6d4b\u503c\u3002<\/li>\n<li><code>model<\/code>\uff1a\u8bad\u7ec3\u597d\u7684 PyTorch \u6a21\u578b\u3002<\/li>\n<li><code>info<\/code>\uff1a\u8bad\u7ec3\u8fc7\u7a0b\u3001\u6570\u636e\u5212\u5206\u3001\u5f52\u4e00\u5316\u53c2\u6570\u3001\u8bc4\u4ef7\u6307\u6807\u7b49\u4fe1\u606f\u3002<\/li>\n<\/ul>\n\n\n\n<p><code>options<\/code> \u9010\u9879\u8bf4\u660e\u5982\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th style=\"text-align:left\">\u53c2\u6570\u540d<\/th>\n<th style=\"text-align:left\">\u9ed8\u8ba4\u503c<\/th>\n<th style=\"text-align:left\">\u542b\u4e49\u4e0e\u8c03\u53c2\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align:left\"><code>lookBack<\/code><\/td>\n<td style=\"text-align:left\"><code>12<\/code><\/td>\n<td style=\"text-align:left\">\u6ed1\u52a8\u7a97\u53e3\u957f\u5ea6\uff0c\u8868\u793a\u7528\u524d\u591a\u5c11\u4e2a\u70b9\u9884\u6d4b\u4e0b\u4e00\u4e2a\u70b9\u3002\u7a97\u53e3\u592a\u77ed\u5bb9\u6613\u6f0f\u6389\u5468\u671f\uff0c\u592a\u957f\u4f1a\u589e\u52a0\u8bad\u7ec3\u96be\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>rTrain<\/code><\/td>\n<td style=\"text-align:left\"><code>0.8<\/code><\/td>\n<td style=\"text-align:left\">\u8bad\u7ec3+\u9a8c\u8bc1\u6570\u636e\u5360\u539f\u59cb\u5e8f\u5217\u7684\u6bd4\u4f8b\u3002\u540e\u9762\u5269\u4f59\u90e8\u5206\u4f5c\u4e3a\u6d4b\u8bd5\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>validationRatio<\/code><\/td>\n<td style=\"text-align:left\"><code>0.15<\/code><\/td>\n<td style=\"text-align:left\">\u5728\u8bad\u7ec3+\u9a8c\u8bc1\u6570\u636e\u4e2d\u518d\u5207\u51fa\u591a\u5c11\u4f5c\u4e3a\u9a8c\u8bc1\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>shuffle<\/code><\/td>\n<td style=\"text-align:left\"><code>True<\/code><\/td>\n<td style=\"text-align:left\">\u662f\u5426\u6253\u4e71\u8bad\u7ec3\u7a97\u53e3\u7684 mini-batch \u987a\u5e8f\u3002\u4e0d\u4f1a\u6539\u53d8\u65f6\u95f4\u987a\u5e8f\u5207\u5206\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>seed<\/code><\/td>\n<td style=\"text-align:left\"><code>42<\/code><\/td>\n<td style=\"text-align:left\">\u968f\u673a\u79cd\u5b50\u3002\u8bbe\u4e3a 0 \u53ef\u53d6\u6d88\u56fa\u5b9a\u968f\u673a\u6027\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>networkType<\/code><\/td>\n<td style=\"text-align:left\"><code>&#039;LSTM&#039;<\/code><\/td>\n<td style=\"text-align:left\">RNN \u5c42\u7c7b\u578b\uff0c\u53ef\u9009 <code>&#039;RNN&#039;<\/code>\u3001<code>&#039;LSTM&#039;<\/code>\u3001<code>&#039;GRU&#039;<\/code>\u3001<code>&#039;BiLSTM&#039;<\/code>\u3001<code>&#039;BiGRU&#039;<\/code>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>convChannels<\/code><\/td>\n<td style=\"text-align:left\"><code>16<\/code><\/td>\n<td style=\"text-align:left\">1D CNN \u5377\u79ef\u8f93\u51fa\u901a\u9053\u6570\u3002\u8d8a\u5927\u53ef\u8868\u8fbe\u7684\u5c40\u90e8\u6a21\u5f0f\u8d8a\u591a\uff0c\u4f46\u8fc7\u62df\u5408\u98ce\u9669\u66f4\u9ad8\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>kernelSize<\/code><\/td>\n<td style=\"text-align:left\"><code>3<\/code><\/td>\n<td style=\"text-align:left\">1D \u5377\u79ef\u6838\u5927\u5c0f\uff0c\u5fc5\u987b\u4e3a\u6b63\u5947\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>poolSize<\/code><\/td>\n<td style=\"text-align:left\"><code>2<\/code><\/td>\n<td style=\"text-align:left\">\u6700\u5927\u6c60\u5316\u7a97\u53e3\u3002\u8bbe\u4e3a 1 \u8868\u793a\u4e0d\u6c60\u5316\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>rnnHidden<\/code><\/td>\n<td style=\"text-align:left\"><code>32<\/code><\/td>\n<td style=\"text-align:left\">RNN \u9690\u85cf\u5355\u5143\u6570\u3002\u8d8a\u5927\u6a21\u578b\u5bb9\u91cf\u8d8a\u5f3a\uff0c\u8bad\u7ec3\u65f6\u95f4\u548c\u8fc7\u62df\u5408\u98ce\u9669\u4e5f\u8d8a\u9ad8\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>dropoutProb<\/code><\/td>\n<td style=\"text-align:left\"><code>0.1<\/code><\/td>\n<td style=\"text-align:left\">Dropout \u6982\u7387\uff0c\u53d6\u503c\u8303\u56f4 <code>[0,1)<\/code>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>epochs<\/code><\/td>\n<td style=\"text-align:left\"><code>200<\/code><\/td>\n<td style=\"text-align:left\">\u6700\u5927\u8bad\u7ec3\u8f6e\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>batchSize<\/code><\/td>\n<td style=\"text-align:left\"><code>32<\/code><\/td>\n<td style=\"text-align:left\">\u5c0f\u6279\u91cf\u5927\u5c0f\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>lr<\/code><\/td>\n<td style=\"text-align:left\"><code>0.005<\/code><\/td>\n<td style=\"text-align:left\">\u521d\u59cb\u5b66\u4e60\u7387\u3002\u8fc7\u5927\u5bb9\u6613\u9707\u8361\uff0c\u8fc7\u5c0f\u6536\u655b\u6162\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>weightDecay<\/code><\/td>\n<td style=\"text-align:left\"><code>1e-4<\/code><\/td>\n<td style=\"text-align:left\">\u6743\u91cd\u8870\u51cf\uff0c\u4e5f\u5c31\u662f L2 \u6b63\u5219\u5316\u7cfb\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>gradClip<\/code><\/td>\n<td style=\"text-align:left\"><code>1.0<\/code><\/td>\n<td style=\"text-align:left\">\u68af\u5ea6\u88c1\u526a\u9608\u503c\uff0c\u7528\u4e8e\u907f\u514d\u8bad\u7ec3\u4e0d\u7a33\u5b9a\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>patience<\/code><\/td>\n<td style=\"text-align:left\"><code>30<\/code><\/td>\n<td style=\"text-align:left\">\u65e9\u505c\u5bb9\u5fcd\u8f6e\u6570\u3002\u9a8c\u8bc1\u635f\u5931\u8fde\u7eed\u591a\u8f6e\u4e0d\u6539\u5584\u65f6\u63d0\u524d\u505c\u6b62\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>learnRateSchedule<\/code><\/td>\n<td style=\"text-align:left\"><code>&#039;piecewise&#039;<\/code><\/td>\n<td style=\"text-align:left\">\u5b66\u4e60\u7387\u8c03\u5ea6\u65b9\u5f0f\uff0c\u53ef\u9009 <code>&#039;piecewise&#039;<\/code> \u6216 <code>&#039;none&#039;<\/code>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>learnRateDropPeriod<\/code><\/td>\n<td style=\"text-align:left\"><code>50<\/code><\/td>\n<td style=\"text-align:left\">\u5206\u6bb5\u5b66\u4e60\u7387\u4e0b\u964d\u5468\u671f\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>learnRateDropFactor<\/code><\/td>\n<td style=\"text-align:left\"><code>0.5<\/code><\/td>\n<td style=\"text-align:left\">\u5b66\u4e60\u7387\u4e0b\u964d\u7cfb\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>mapflag<\/code><\/td>\n<td style=\"text-align:left\"><code>True<\/code><\/td>\n<td style=\"text-align:left\">\u662f\u5426\u5f52\u4e00\u5316\u3002\u5efa\u8bae\u5f00\u542f\uff1b\u7a0b\u5e8f\u53ea\u4f7f\u7528\u8bad\u7ec3\u96c6\u62df\u5408\u5f52\u4e00\u5316\u53c2\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>figflag<\/code><\/td>\n<td style=\"text-align:left\"><code>True<\/code><\/td>\n<td style=\"text-align:left\">\u662f\u5426\u7ed8\u5236\u7ed3\u679c\u56fe\u3002\u8bbe\u4e3a <code>True<\/code> \u65f6\uff0c\u6bcf\u5f20\u7ed3\u679c\u56fe\u4f1a\u5206\u522b\u5f39\u51fa\uff0c\u5e76\u81ea\u52a8\u4fdd\u5b58\u5230 <code>figure\/<\/code> \u6587\u4ef6\u5939\uff1b\u8bbe\u4e3a <code>False<\/code> \u65f6\u4e0d\u7ed8\u56fe\u4e5f\u4e0d\u4fdd\u5b58\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>deviceSel<\/code><\/td>\n<td style=\"text-align:left\"><code>&#039;auto&#039;<\/code><\/td>\n<td style=\"text-align:left\">\u8bad\u7ec3\u8bbe\u5907\uff0c\u53ef\u9009 <code>&#039;auto&#039;<\/code>\u3001<code>&#039;cpu&#039;<\/code>\u3001<code>&#039;gpu&#039;<\/code>\u3002<code>&#039;auto&#039;<\/code> \u4f1a\u4f18\u5148\u4f7f\u7528\u53ef\u7528 GPU\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">4. FunCNNRNNsForecastMul.py \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8be5\u6587\u4ef6\u5305\u542b\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u6838\u5fc3\u51fd\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">fore_data, fore_data_train, fore_data_val, model, info = FunCNNRNNsForecastMul(data, options)<\/code><\/pre>\n\n\n\n<p>\u5b83\u7684\u5927\u90e8\u5206\u53c2\u6570\u4e0e\u5355\u6b65\u7248\u4e00\u81f4\uff0c\u533a\u522b\u5728\u4e8e\u6d4b\u8bd5\u6bb5\u91c7\u7528\u9012\u5f52\u6eda\u52a8\u9884\u6d4b\uff0c\u800c\u4e14\u6a21\u578b\u9ed8\u8ba4\u5b66\u4e60\u201c\u76f8\u5bf9\u57fa\u51c6\u7684\u6b8b\u5dee\u201d\u3002<\/p>\n\n\n\n<p>\u591a\u6b65\u7248\u989d\u5916\u53c2\u6570\u5982\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th style=\"text-align:left\">\u53c2\u6570\u540d<\/th>\n<th style=\"text-align:left\">\u9ed8\u8ba4\u503c<\/th>\n<th style=\"text-align:left\">\u542b\u4e49\u4e0e\u8c03\u53c2\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align:left\"><code>baselineMode<\/code><\/td>\n<td style=\"text-align:left\"><code>&#039;seasonal&#039;<\/code><\/td>\n<td style=\"text-align:left\">\u9012\u5f52\u9884\u6d4b\u65f6\u7684\u57fa\u51c6\u65b9\u5f0f\uff0c\u53ef\u9009 <code>&#039;seasonal&#039;<\/code> \u6216 <code>&#039;last&#039;<\/code>\u3002<code>&#039;seasonal&#039;<\/code> \u9002\u5408\u6709\u5468\u671f\u7684\u6570\u636e\uff0c<code>&#039;last&#039;<\/code> \u9002\u5408\u66f4\u63a5\u8fd1\u968f\u673a\u6e38\u8d70\u7684\u5e8f\u5217\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>seasonPeriod<\/code><\/td>\n<td style=\"text-align:left\"><code>None<\/code><\/td>\n<td style=\"text-align:left\">\u5b63\u8282\u5468\u671f\u3002\u4e3a <code>None<\/code> \u65f6\u9ed8\u8ba4\u7b49\u4e8e <code>lookBack<\/code>\u3002\u6708\u5ea6\u6570\u636e\u5e38\u7528 12\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><code>residualScale<\/code><\/td>\n<td style=\"text-align:left\"><code>1<\/code><\/td>\n<td style=\"text-align:left\">\u6a21\u578b\u6b8b\u5dee\u7f29\u653e\u6bd4\u4f8b\uff0c\u4e5f\u53ef\u4ee5\u8bbe\u4e3a <code>&#039;auto&#039;<\/code> \u8ba9\u7a0b\u5e8f\u6839\u636e\u9a8c\u8bc1\u96c6\u81ea\u52a8\u4f30\u8ba1\u3002\u591a\u6b65\u9884\u6d4b\u6f02\u79fb\u660e\u663e\u65f6\u53ef\u9002\u5f53\u8c03\u5c0f\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">5. EvaForeEffect.py \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8be5\u6587\u4ef6\u7528\u4e8e\u8ba1\u7b97\u9884\u6d4b\u8bc4\u4ef7\u6307\u6807\u3002<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">ind = EvaForeEffect(realData, foreData, indNamesCell)<\/code><\/pre>\n\n\n\n<p>\u8f93\u5165\u53c2\u6570\uff1a<\/p>\n\n\n\n<ul>\n<li><code>realData<\/code>\uff1a\u771f\u5b9e\u503c\u3002<\/li>\n<li><code>foreData<\/code>\uff1a\u9884\u6d4b\u503c\u3002<\/li>\n<li><code>indNamesCell<\/code>\uff1a\u9700\u8981\u8ba1\u7b97\u7684\u6307\u6807\u540d\u79f0\uff0c\u4f8b\u5982 <code>[&#039;MAE&#039;,&#039;MSE&#039;,&#039;RMSE&#039;,&#039;MAPE&#039;,&#039;R2&#039;,&#039;R&#039;]<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8f93\u51fa\u53c2\u6570\uff1a<\/p>\n\n\n\n<ul>\n<li><code>ind<\/code>\uff1a\u5404\u6307\u6807\u8ba1\u7b97\u7ed3\u679c\uff0c\u987a\u5e8f\u4e0e <code>indNamesCell<\/code> \u4e00\u4e00\u5bf9\u5e94\u3002<\/li>\n<\/ul>\n\n\n\n<h6 class=\"wp-block-heading\">6. chickenpox.mat \u6587\u4ef6<\/h6>\n\n\n\n<p>\u793a\u4f8b\u6570\u636e\u6587\u4ef6\uff0c\u5305\u542b\u4e00\u6761\u4e00\u7ef4\u6708\u5ea6\u65f6\u95f4\u5e8f\u5217\u3002\u5b9e\u9645\u4f7f\u7528\u65f6\uff0c\u53ef\u4ee5\u66ff\u6362\u6210\u81ea\u5df1\u7684 Excel\u3001CSV\u3001TXT\u3001MAT \u7b49\u6570\u636e\uff0c\u53ea\u8981\u6700\u540e\u6574\u7406\u4e3a\u4e00\u7ef4\u6570\u503c\u5e8f\u5217\u5373\u53ef\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">7. requirements.txt \u6587\u4ef6<\/h6>\n\n\n\n<p>\u8bb0\u5f55 Python \u8fd0\u884c\u4f9d\u8d56\u3002\u5efa\u8bae\u5728\u65b0\u73af\u5883\u4e2d\u5148\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">8. figure \u6587\u4ef6\u5939<\/h6>\n\n\n\n<p>\u7a0b\u5e8f\u8fd0\u884c\u540e\u81ea\u52a8\u751f\u6210\uff0c\u91cc\u9762\u4fdd\u5b58\u6536\u655b\u56fe\u3001\u8bad\u7ec3\u96c6\u9884\u6d4b\u56fe\u3001\u9a8c\u8bc1\u96c6\u9884\u6d4b\u56fe\u3001\u6d4b\u8bd5\u96c6\u9884\u6d4b\u56fe\u3001\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u56fe\u548c\u6307\u6807\u5bf9\u6bd4\u56fe\u3002\u5b8c\u6574\u7248\u56fe\u50cf\u65e0\u6c34\u5370\uff0c\u516c\u5f00\u7248\u56fe\u50cf\u5e26\u6709\u8bd5\u7528\u7248\u6c34\u5370\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">9. \u4ee3\u7801\u8bf4\u660e.txt \u6587\u4ef6<\/h6>\n\n\n\n<p>\u7b80\u8981\u8bf4\u660e\u4ee3\u7801\u6587\u4ef6\u7ec4\u6210\u3001\u8fd0\u884c\u5165\u53e3\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e09\u3001\u5feb\u901f\u5f00\u59cb<\/h4>\n\n\n\n<h6 class=\"wp-block-heading\">1. \u5b89\u88c5\u4f9d\u8d56<\/h6>\n\n\n\n<p>\u5728\u4ee3\u7801\u6587\u4ef6\u5939\u4e2d\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">2. \u8fd0\u884c\u6d4b\u8bd5\u811a\u672c<\/h6>\n\n\n\n<p>\u8fd0\u884c\u5355\u6b65\u9884\u6d4b demo\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">python demoCNNRNNsForecast.py<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u591a\u6b65\u9012\u5f52\u9884\u6d4b demo\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">python demoCNNRNNsForecastMul.py<\/code><\/pre>\n\n\n\n<p>\u7a0b\u5e8f\u6b63\u5e38\u8fd0\u884c\u540e\uff0c\u4f1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u6253\u5370\u8bad\u7ec3\u8fc7\u7a0b\u3001\u6570\u636e\u5212\u5206\u548c\u8bc4\u4ef7\u6307\u6807\uff0c\u5e76\u5728 <code>figure\/<\/code> \u6587\u4ef6\u5939\u4e2d\u4fdd\u5b58\u7ed3\u679c\u56fe\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">3. \u66ff\u6362\u6210\u81ea\u5df1\u7684\u6570\u636e<\/h6>\n\n\n\n<p>\u590d\u5236\u4e00\u4e2a demo \u811a\u672c\u526f\u672c\uff0c\u5728\u526f\u672c\u4e2d\u4fee\u6539\u6570\u636e\u52a0\u8f7d\u90e8\u5206\u5373\u53ef\u3002\u53ea\u8981\u6700\u7ec8\u5f97\u5230\u4e00\u7ef4\u5e8f\u5217\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">data = your_data.reshape(-1)<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u4fdd\u6301\u540e\u9762\u7684\u51fd\u6570\u8c03\u7528\u4e0d\u53d8\u3002<\/p>\n\n\n\n<p>\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4e0d\u5efa\u8bae\u968f\u673a\u62bd\u53d6\u6700\u540e\u6d4b\u8bd5\u96c6\u3002\u7a0b\u5e8f\u9ed8\u8ba4\u6309\u65f6\u95f4\u987a\u5e8f\u5207\u5206\uff1a\u524d\u9762\u4e00\u6bb5\u7528\u4e8e\u8bad\u7ec3\u548c\u9a8c\u8bc1\uff0c\u6700\u540e\u4e00\u6bb5\u4f5c\u4e3a\u6d4b\u8bd5\u96c6\uff0c\u8fd9\u6837\u66f4\u63a5\u8fd1\u771f\u5b9e\u9884\u6d4b\u573a\u666f\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">4. \u8c03\u6574\u5e38\u7528\u53c2\u6570<\/h6>\n\n\n\n<p>\u6700\u5e38\u6539\u7684\u53c2\u6570\u901a\u5e38\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">options = {\n    &#039;lookBack&#039;: 12,\n    &#039;networkType&#039;: &#039;LSTM&#039;,\n    &#039;convChannels&#039;: 16,\n    &#039;rnnHidden&#039;: 32,\n    &#039;epochs&#039;: 200,\n    &#039;lr&#039;: 0.005,\n    &#039;figflag&#039;: True,\n    &#039;deviceSel&#039;: &#039;auto&#039;,\n}<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u505a\u591a\u6b65\u9012\u5f52\u9884\u6d4b\uff0c\u8fd8\u53ef\u4ee5\u91cd\u70b9\u8c03\u6574\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-python\">options = {\n    &#039;baselineMode&#039;: &#039;seasonal&#039;,\n    &#039;seasonPeriod&#039;: 12,\n    &#039;residualScale&#039;: 1,\n}<\/code><\/pre>\n\n\n\n<p>\u5f53\u591a\u6b65\u9884\u6d4b\u66f2\u7ebf\u6f02\u79fb\u660e\u663e\u65f6\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u628a <code>residualScale<\/code> \u8c03\u5c0f\uff0c\u6216\u8005\u8bbe\u7f6e\u4e3a <code>&#039;auto&#039;<\/code>\uff0c\u8ba9\u7a0b\u5e8f\u6839\u636e\u9a8c\u8bc1\u96c6\u81ea\u52a8\u4f30\u8ba1\u6b8b\u5dee\u7f29\u653e\u6bd4\u4f8b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u56db\u3001\u5173\u4e8e\u5b8c\u6574\u7248\u4e0e\u516c\u5f00\u7248\u4ee3\u7801<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th style=\"text-align:left\">\u529f\u80fd<\/th>\n<th style=\"text-align:center\">\u5b8c\u6574\u7248<\/th>\n<th style=\"text-align:center\">\u516c\u5f00\u7248<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align:left\">\u5355\u6b65\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u591a\u6b65\u9012\u5f52\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u793a\u4f8b\u6570\u636e\u4e0e demo \u811a\u672c<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6838\u5fc3\u51fd\u6570\u6e90\u7801<\/td>\n<td style=\"text-align:center\">\u63d0\u4f9b<\/td>\n<td style=\"text-align:center\">\u4e0d\u63d0\u4f9b<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u81ea\u52a8\u4fdd\u5b58\u7ed3\u679c\u56fe<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u7ed3\u679c\u56fe\u6c34\u5370<\/td>\n<td style=\"text-align:center\">\u65e0\u6c34\u5370<\/td>\n<td style=\"text-align:center\">\u6709 <code>\u8bd5\u7528\u7248@khsci.com\/docs<\/code> \u6c34\u5370<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6570\u636e\u957f\u5ea6\u9650\u5236<\/td>\n<td style=\"text-align:center\">\u65e0\u9650\u5236<\/td>\n<td style=\"text-align:center\">\u6700\u591a 100 \u4e2a\u65f6\u95f4\u70b9<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6700\u5927\u8bad\u7ec3\u8f6e\u6570<\/td>\n<td style=\"text-align:center\">\u65e0\u9650\u5236<\/td>\n<td style=\"text-align:center\">\u6700\u591a 50 \u8f6e<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u53ef\u5bfc\u51fa\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u3001\u9884\u6d4b\u7ed3\u679c\u548c info \u4fe1\u606f<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u90e8\u5206\u53d7\u9650<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u9002\u5408\u6b63\u5f0f\u9879\u76ee\u548c\u4e8c\u6b21\u4fee\u6539<\/td>\n<td style=\"text-align:center\">\u221a<\/td>\n<td style=\"text-align:center\">\u4ec5\u9002\u5408\u4f53\u9a8c\u6d41\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<p>\u516c\u5f00\u7248\u4e3b\u8981\u7528\u4e8e\u786e\u8ba4\u8fd0\u884c\u73af\u5883\u3001\u67e5\u770b\u7a0b\u5e8f\u8c03\u7528\u65b9\u5f0f\u548c\u4f53\u9a8c\u57fa\u672c\u6d41\u7a0b\u3002\u6b63\u5f0f\u9879\u76ee\u5efa\u8bae\u4f7f\u7528\u5b8c\u6574\u7248\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e94\u3001\u83b7\u53d6\u516c\u5f00\u7248\u7a0b\u5e8f<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p><strong>\u516c\u5f00\u7248\u4e0b\u8f7d\uff1a<\/strong> <a href=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/CNN_RNNs_Forecast_Python_%E8%AF%95%E7%94%A8%E7%89%88_V267i4i2z.zip\">\u70b9\u51fb\u6b64\u5904\u4e0b\u8f7d CNN-RNN \u65f6\u95f4\u5e8f\u5217\u9884\u6d4b Python \u516c\u5f00\u7248\u4ee3\u7801<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>\u6ce8\uff1a\u516c\u5f00\u7248\u4ee3\u7801\u5305\u542b\u6f14\u793a\u811a\u672c\u3001\u793a\u4f8b\u6570\u636e\u548c\u8fd0\u884c\u6240\u9700\u6587\u4ef6\u3002\u516c\u5f00\u7248\u6700\u591a\u652f\u6301 100 \u4e2a\u65f6\u95f4\u70b9\uff0c\u6700\u5927\u8bad\u7ec3\u8f6e\u6570\u4e3a 50\uff0c\u7ed3\u679c\u56fe\u5e26\u6709\u8bd5\u7528\u7248\u6c34\u5370\uff1b\u76ee\u524d\u9002\u7528\u4e8e Windows 64 \u4f4d + Python 3.11 \u73af\u5883\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u516d\u3001\u83b7\u53d6\u5b8c\u6574\u7248\u7a0b\u5e8f<\/h4>\n\n\n\n<p>\u70b9\u51fb\u672c\u9875\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\u3002\u672c\u901a\u9053\u5904\u4e8e\u6d4b\u8bd5\u9636\u6bb5\uff0c\u4ed8\u6b3e\u5b8c\u6210\u540e\u5237\u65b0\u4e00\u4e0b\u672c\u9875\u9762\u5373\u53ef\u770b\u5230\u4e0b\u8f7d\u94fe\u63a5\u3002<\/p>\n\n\n\n<p>\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><div class=\"erphp-wppay\">\n\t\t\t\t\u60a8\u9700\u8981\u5148\u652f\u4ed8 <b>69.5\u5143<\/b> \u624d\u80fd\u67e5\u770b\u6b64\u5904\u5185\u5bb9\uff01<a href=\"javascript:;\" class=\"erphp-wppay-loader\" data-post=\"3894\">\u7acb\u5373\u652f\u4ed8<\/a>\n\t\t\t<\/div><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e03\u3001\u5b8c\u6574\u7248\u4ee3\u7801\u91cd\u8981\u66f4\u65b0<\/h4>\n\n\n\n<ul>\n<li>20260719\uff1a\u7ed3\u679c\u56fe\u6539\u4e3a\u5f39\u7a97\u663e\u793a\u5e76\u540c\u6b65\u4fdd\u5b58\uff1b\u591a\u6b65\u7248\u91c7\u7528\u5b63\u8282\u57fa\u51c6\u4e0e\u6b8b\u5dee\u5b66\u4e60\uff0c\u652f\u6301\u7528 <code>residualScale<\/code> \u63a7\u5236\u9012\u5f52\u4fee\u6b63\u5f3a\u5ea6\uff0c\u51cf\u7f13\u9884\u6d4b\u6f02\u79fb\u3002<\/li>\n<li>20260717\uff1a\u5b8c\u6210 CNN-RNN \u65f6\u95f4\u5e8f\u5217\u9884\u6d4b Python \u7248\u521d\u7248\u4ee3\u7801\uff0c\u5305\u542b\u5355\u6b65\u9884\u6d4b\u3001\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u3001\u81ea\u52a8\u753b\u56fe\u548c\u8bc4\u4ef7\u6307\u6807\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u516b\u3001\u5e38\u89c1\u95ee\u9898<\/h4>\n\n\n\n<h6 class=\"wp-block-heading\">Q1\uff1a\u8fd9\u4e2a\u4ee3\u7801\u505a\u7684\u662f\u56de\u5f52\u3001\u5206\u7c7b\u8fd8\u662f\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\uff1f<\/h6>\n\n\n\n<p>\u8fd9\u662f\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4ee3\u7801\uff0c\u672c\u8d28\u8f93\u51fa\u662f\u8fde\u7eed\u6570\u503c\uff0c\u56e0\u6b64\u4e5f\u5c5e\u4e8e\u56de\u5f52\u9884\u6d4b\u7684\u4e00\u79cd\u3002\u5b83\u4e0d\u662f\u5206\u7c7b\u4ee3\u7801\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Q2\uff1a\u5355\u6b65\u9884\u6d4b\u548c\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h6>\n\n\n\n<p>\u5355\u6b65\u9884\u6d4b\u6bcf\u6b21\u4f7f\u7528\u771f\u5b9e\u5386\u53f2\u7a97\u53e3\u9884\u6d4b\u4e0b\u4e00\u4e2a\u70b9\uff1b\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u4f1a\u628a\u524d\u4e00\u6b65\u9884\u6d4b\u503c\u653e\u56de\u7a97\u53e3\u7ee7\u7eed\u9884\u6d4b\u540e\u7eed\u70b9\u3002\u591a\u6b65\u9012\u5f52\u66f4\u63a5\u8fd1\u771f\u5b9e\u672a\u6765\u9884\u6d4b\uff0c\u4f46\u8bef\u5dee\u4e5f\u66f4\u5bb9\u6613\u7d2f\u79ef\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Q3\uff1a\u4e3a\u4ec0\u4e48\u516c\u5f00\u7248\u8981\u6c42 Python 3.11\uff1f<\/h6>\n\n\n\n<p>\u516c\u5f00\u7248\u76ee\u524d\u6309\u7167 Windows 64 \u4f4d + Python 3.11 \u73af\u5883\u5236\u4f5c\u5e76\u5b8c\u6210\u6d4b\u8bd5\uff0c\u56e0\u6b64\u8bf7\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u8fd0\u884c\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Q4\uff1aGPU \u4e0d\u662f\u5fc5\u987b\u7684\u5417\uff1f<\/h6>\n\n\n\n<p>\u4e0d\u662f\u5fc5\u987b\u3002<code>deviceSel<\/code> \u9ed8\u8ba4\u4e3a <code>&#039;auto&#039;<\/code>\uff0c\u5982\u679c\u68c0\u6d4b\u4e0d\u5230\u53ef\u7528 GPU\uff0c\u4f1a\u81ea\u52a8\u4f7f\u7528 CPU\u3002\u6570\u636e\u91cf\u4e0d\u5927\u65f6 CPU \u4e5f\u53ef\u4ee5\u8fd0\u884c\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Q5\uff1a\u591a\u6b65\u9884\u6d4b\u6d4b\u8bd5\u96c6 R\u00b2 \u4e0d\u9ad8\u600e\u4e48\u529e\uff1f<\/h6>\n\n\n\n<p>\u591a\u6b65\u9012\u5f52\u9884\u6d4b\u6bd4\u5355\u6b65\u9884\u6d4b\u66f4\u96be\u3002\u53ef\u4ee5\u4f18\u5148\u68c0\u67e5\u6570\u636e\u5468\u671f\u6027\uff0c\u5c1d\u8bd5\u8c03\u6574 <code>lookBack<\/code>\u3001<code>seasonPeriod<\/code>\u3001<code>residualScale<\/code>\u3001<code>networkType<\/code>\u3001<code>rnnHidden<\/code>\u3001<code>lr<\/code>\uff0c\u4e5f\u53ef\u4ee5\u589e\u52a0\u8bad\u7ec3\u6570\u636e\u91cf\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Q6\uff1a\u53ef\u4ee5\u6362\u6210\u81ea\u5df1\u7684 Excel \u6216 CSV \u6570\u636e\u5417\uff1f<\/h6>\n\n\n\n<p>\u53ef\u4ee5\u3002\u5148\u7528 pandas\u3001numpy \u6216 scipy \u8bfb\u53d6\u6570\u636e\uff0c\u518d\u6574\u7406\u6210\u4e00\u7ef4\u6570\u503c\u5e8f\u5217\u5373\u53ef\u3002\u5efa\u8bae\u5148\u5904\u7406\u7f3a\u5931\u503c\u3001\u5f02\u5e38\u503c\u548c\u975e\u6570\u503c\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e00\u5957 Python \u7248 CNN-RNN \u6df7\u5408\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4ee3\u7801\u3002\u7a0b\u5e8f\u4ee5 chickenpox.mat \u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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>CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \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\/2026\/07\/19\/cnn-rnn-forecast-python\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u4ecb\u7ecd\u4e00\u5957 Python \u7248 CNN-RNN \u6df7\u5408\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4ee3\u7801\u3002\u7a0b\u5e8f\u4ee5 chickenpox.mat \u4e2d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\" \/>\n<meta property=\"og:site_name\" content=\"\u5de5\u5177\u7bb1\u6587\u6863\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-19T12:26:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-19T13:14:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-single-loss.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=\"2 \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\/2026\/07\/19\/cnn-rnn-forecast-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\"},\"author\":{\"name\":\"kuohao\",\"@id\":\"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5\"},\"headline\":\"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801\",\"datePublished\":\"2026-07-19T12:26:13+00:00\",\"dateModified\":\"2026-07-19T13:14:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\"},\"wordCount\":106,\"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\/2026\/07\/19\/cnn-rnn-forecast-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\",\"url\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\",\"name\":\"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863\",\"isPartOf\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/#website\"},\"datePublished\":\"2026-07-19T12:26:13+00:00\",\"dateModified\":\"2026-07-19T13:14:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.khsci.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801\"}]},{\"@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":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \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\/2026\/07\/19\/cnn-rnn-forecast-python\/","og_locale":"zh_CN","og_type":"article","og_title":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863","og_description":"\u672c\u6587\u4ecb\u7ecd\u4e00\u5957 Python \u7248 CNN-RNN \u6df7\u5408\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u4ee3\u7801\u3002\u7a0b\u5e8f\u4ee5 chickenpox.mat \u4e2d [&hellip;]","og_url":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/","og_site_name":"\u5de5\u5177\u7bb1\u6587\u6863","article_published_time":"2026-07-19T12:26:13+00:00","article_modified_time":"2026-07-19T13:14:32+00:00","og_image":[{"url":"https:\/\/www.khsci.com\/docs\/wp-content\/uploads\/2026\/07\/cnn-rnn-forecast-python-single-loss.png"}],"author":"kuohao","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"kuohao","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/#article","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/"},"author":{"name":"kuohao","@id":"https:\/\/www.khsci.com\/docs\/#\/schema\/person\/44b1dc94a273203f641349de36ebc0a5"},"headline":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801","datePublished":"2026-07-19T12:26:13+00:00","dateModified":"2026-07-19T13:14:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/"},"wordCount":106,"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\/2026\/07\/19\/cnn-rnn-forecast-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/","url":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/","name":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801 - \u5de5\u5177\u7bb1\u6587\u6863","isPartOf":{"@id":"https:\/\/www.khsci.com\/docs\/#website"},"datePublished":"2026-07-19T12:26:13+00:00","dateModified":"2026-07-19T13:14:32+00:00","breadcrumb":{"@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.khsci.com\/docs\/index.php\/2026\/07\/19\/cnn-rnn-forecast-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.khsci.com\/docs\/"},{"@type":"ListItem","position":2,"name":"CNN-RNN\u65f6\u95f4\u5e8f\u5217\u9884\u6d4bPython\u4ee3\u7801"}]},{"@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\/3894"}],"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=3894"}],"version-history":[{"count":1,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/3894\/revisions"}],"predecessor-version":[{"id":3901,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/posts\/3894\/revisions\/3901"}],"wp:attachment":[{"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/media?parent=3894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/categories?post=3894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.khsci.com\/docs\/index.php\/wp-json\/wp\/v2\/tags?post=3894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}