In this example on MATLAB for "Train Network for Time Series Forecasting Using Deep Network Designer" tutorial there is an error in line 27. What do i do next

4 vues (au cours des 30 derniers jours)
net = predictAndUpdateState(trainedNetwork_1,XTrain);
HERE IT SAYS 'trainedNetwork_1' is an unrecongnised function or variable.
[net,YPred] = predictAndUpdateState(net,YTrain(end));
numTimeStepsTest = numel(XTest);
for i = 2:numTimeStepsTest
[net,YPred(:,i)] = predictAndUpdateState(net,YPred(:,i-1),'ExecutionEnvironment','cpu');
end

Réponses (1)

yanqi liu
yanqi liu le 25 Mar 2022
yes,sir,if you design trainedNetwork_1 ,may be should train it first,then use predict to use the trained model

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by