How to use predict(net,X) with Sequence data or data which have single dimensional input?

조회 수: 1 (최근 30일)
I have trained the model on input having
size(input) = [1 78852] double
and output of
size(Output) = [1 78852].
The model is trained using command
net = layrecnet(1:2,[20 20],'trainlm');.
I want to use the predict(net, X) but it is giving me error
Error using predict (line 84)
No valid system or dataset was specified.
As my input is single dimentional vector. How to use this predict function in my prgoram?

답변 (1개)

Greg Heath
Greg Heath 2019년 1월 11일
  1. How do you expect us to help when you do not show us your code ???
  2. Just the fact that the error involves "predict" and you show no such code is more than enough for a bald man to scratch his head.
  3. Please see the HELP and DOC files before posting a question.
Greg
  댓글 수: 3
poonam
poonam 2019년 1월 11일
편집: poonam 2019년 1월 11일
From help and Doc I was on conclusion that my input is single dimentional vector and in predict() function need the matrix of D-by-S matrix if data is sequential. So, I have tried the alternate way of argument in the funtion. But gettting the same resulted error.
YPred = predict(net,[Input_validation_data(1:10), 11] );
Greg Heath
Greg Heath 2019년 1월 23일
You are not using the MATLAB VERSION of the definition validation.
See the Matlab definitions of train, val and test.
Greg

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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!

Translated by