how to test a trained network with new data?

3 views (last 30 days)
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?

Accepted Answer

Greg Heath
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

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!