Viewing the ouput of a neural network
Mostrar comentarios más antiguos
Hello,
I have tried out the matlab example on 'Training a deep neural network for image classification'. I am getting the results as in the specified example. But my question is how do I view an output for a given input ? Note : My commands are exactly similar to the example just for trial purposes.
So after deepnet is formed : I do something like :
y = deepnet(xTest);
----------------------------------Till here same as the code
finalnet = configure(deepnet,xTrainImages{1}, tTrain(:,1))
U = imread('YYY.png')
imshow(U)
images_chk{1} = U
idj = sim(finalnet, images_chk{1})
This results in a weird decimal matrix, I would ideally like it to output the class of the input image eg a column containing 1 for 1 entry and 0 for remaining. How can I do that ?
Thanks
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 8 de En. de 2016
0 votos
It is common that you would need to round() to get the class number.
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!