MATLAB: How to test a trained network with new data

classificationDeep Learning Toolboxneural network

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?

Best Answer

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