Classification with Neural Network Toolbox
4 views (last 30 days)
Show older comments
I attempt to build a neural network that can classify the health of leafs. I created an input Matrix with the attributes (reflection of wavelength) and a Output Matrix which contains the classes (each column is a 2-element class vector with a 1 in the position of the associated health). Those are just sample data, which I created manuelly. Now I use the pattern recognition tool for training. My question is how to use trained Neural Network in Matlab for classification. I've got the trained Neuronal Network and a picutre of a leaf, where each Pixel shall be classified as health or sick. Which function can i use ?
0 Comments
Accepted Answer
Greg Heath
on 20 Oct 2013
Once you train an I-H-O neural net classifier net you can save it.
save net1
At some future point when you want to classify M examples in the xnew matrix with
size(xnew) = [ I M ],
Get the net from storage
load net1
Then use the net:
ynew = net1(xnew);
Hope this helps.
Thank you for formally acceting my answer
Greg
More Answers (2)
the cyclist
on 20 Oct 2013
2 Comments
the cyclist
on 20 Oct 2013
On this page http://www.mathworks.com/help/nnet/gs/classify-patterns-with-a-neural-network.html, Step 5 under "using command-line functions" discusses actually using the neural network with new inputs.
Greg Heath
on 20 Oct 2013
ynew = net(xnew);
Hope this helps.
Thank you for formally accepting my answer.
Greg
0 Comments
See Also
Categories
Find more on Image Data Workflows 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!