如何使两个提交的Matlab火车进行时间序列预测

时间:2019-11-11 02:02:27

标签: matlab deep-learning lstm

例如y = x1 + x2      x1 = [0,1,2,3,4] x2 = [0,1,2,3,4] y = [0,2,4,6,8]

我无法使xtrain成为两个字段数据

在链接中

数据=水痘数据集; 数据= [数据{:}];只是1场数据。

所以,我不知道如何制作两个野战训练数据

https://kr.mathworks.com/help/deeplearning/examples/time-series-forecasting-using-deep-learning.html?lang=en

data = [0,0,0; ​​1,1,2; 2,2,4; 3,3,6; 4,4,8];

numTimeStepsTrain = 4;

dataTrain = data(1:numTimeStepsTrain); dataTest = data(numTimeStepsTrain:end);

mu =平均值(dataTrain); sig = std(dataTrain);

dataTrainStandardized =(dataTrain-mu)/ sig;

%%这是我的代码错误数据,我的火车数据是[0,1,2,3]。但我想要火车数据[0,1,2,3,4; 0,1,2,3,4]

0 个答案:

没有答案