Getting this error" Invalid training data. Sequence responses must have the same sequence length as the corresponding predictors."

1 vue (au cours des 30 derniers jours)
XTrain=xlsread('C:\Users\Subhodip\Desktop\Sumana\Input.xlsx',1,'A1:E1024');
YTrain=xlsread('C:\Users\Subhodip\Desktop\Sumana\Input.xlsx',1,'F1:F1024');
Xtest=xlsread('C:\Users\Subhodip\Desktop\Sumana\Sample1.xlsx',1,'A1:E1024');
Ytest=xlsread('C:\Users\Subhodip\Desktop\Sumana\Sample1.xlsx',1,'F1:F1024');
inputSize=5;
numResponses=1;
numHiddenUnits=100;
layers=[sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer];
opts=trainingOptions('adam',...
'MaxEpochs',1000,...
'GradientThreshold',0.01,...
'InitialLearnRate',0.0001);
net=trainNetwork(XTrain,YTrain,layers,opts);

Réponses (0)

Catégories

En savoir plus sur Pattern Recognition and Classification dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by