How to predict with new inputs using a trained ANN for bodyfat_dataset
조회 수: 4 (최근 30일)
이전 댓글 표시
I have trained my ANN using the bodyfat_dataset. After that I created a new input matrix with 13 features and 18cases. However I didn't find any example of how to predict the new output.
load fatPred.csv
Xpred = fatPred;
predict(net,Xpred)
When i use this function, it says this only work with single inputs. I then tried
sim(net.Xpred)
The sim function gives me some outputs but I'm not sure if they are correct. Can someone help me understand how to use the predict function for my case please? Thank you.
댓글 수: 0
답변 (1개)
Conor Daly
2023년 3월 28일
What you are doing with sim is correct. With a shallow neural network, you can perform inference in two ways:
Y = sim(net, X);
or
Y = net(X);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling and Prediction with NARX and Time-Delay Networks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!