Viewing the ouput of a neural network
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Walter Roberson
2016년 1월 8일
0 개 추천
It is common that you would need to round() to get the class number.
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!