Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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);

Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by