Prediction of target data new input value that is not present in input data set, after training a model in nftool
조회 수: 7 (최근 30일)
이전 댓글 표시
Mandru Vamsi Venkata Krishna
2022년 12월 29일
댓글: Mandru Vamsi Venkata Krishna
2023년 1월 4일
After training a model in Neural Net Fitting tool in Matlab, how do I predict the target value for the new input data value that is not in the input data set that we trained in nftool. I am sharing the trained model and new input sample data in .mat format.
댓글 수: 0
채택된 답변
Rahul
2023년 1월 3일
I have no information whether you are performing classification or regression. It is also ambiguous that what type of training data you have and how many classes you have and what is the size of the feature set. However, please find the below lines of codes to help with your query.
load('s.mat') % load the sample data to test.
load('r1.mat') % load the trained model and training results.
net = r1.Network; % assigning a variable to the trained model.
test_out = net(sample) % test the result using trained model 'net' for the unknown test data 'sample'
You can also refer below examples given in the documentation page.
추가 답변 (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!