how to test a trained network with new data?

3 vues (au cours des 30 derniers jours)
mehdi
mehdi le 13 Sep 2013
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by