how to test a trained network with new data?
3 views (last 30 days)
Show older comments
i have created a network for classification by using of paternnet and have trained it with input and target data. now I want to chek this network with a new data and find the classes that this data is related to. what should i do now?
0 Comments
Accepted Answer
Greg Heath
on 14 Sep 2013
trueclass = vec2ind(target) % Unit vector target columns --> class indices
[net tr output ] = train(net,input,target);
assignedclass = vec2ind(output)
err = assignedclas~=trueclass
Nerr = sum(err)
newoutput = net(newinput)
newassignedclass = vec2ind(newoutput)
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!