Classification with Neural Network Toolbox

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 ?

 采纳的回答

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

1 个评论

Jan
Jan 2013-10-27
编辑:Jan 2013-10-27
Thanks Greg it does work and excuse me for late response

请先登录,再进行评论。

更多回答(2 个)

I suggest you start here NNT help or here NNT video.

2 个评论

Thanks for help. I've already wachted the video and read the examples. But as far as I understood they use the pattern recognition tool just for training, because you have to committ the inputdata (attributes) and the outputdata (classes). But which function can I use (after training) to classify 'new' input data, in that case pixelinformation/wavelengths. Cause the aim is to classify each pixel.
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.

请先登录,再进行评论。

ynew = net(xnew);
Hope this helps.
Thank you for formally accepting my answer.
Greg

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by