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
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
yanqi liu
2022년 3월 25일
yes,sir,if you design trainedNetwork_1 ,may be should train it first,then use predict to use the trained model
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!