did i need target matrix for new input testing??
이전 댓글 표시
hi...i create neural network....the input matrix is with 18X20...(18= number of features and 20 = number of images for 2 classes)the target matrix is 2X20...after traning i want test the network with new image...the new enter images is matrix of 18X1.. i used this method for testing it:
simpleclassOutputs = sim(mynet11,input); figure();plotroc(T,simpleclassOutputs);
T= is target matrix which used in traning>> the error is ... Index exceeds matrix dimensions.
note: i used R2013a matlab and i am new in neural network
Error in plotconfusion>update_plot (line 396) y = y(:,known);
Error in plotconfusion (line 108) plotData = update_plot(param,fig,plotData,update_args{:});
Error in train (line 223) figure,plotconfusion(T,out);
my question is: how to sove this problem?? did i need target matrix for new input testing?? plz help me/
채택된 답변
추가 답변 (3개)
primrose khaleed
2014년 6월 15일
0 개 추천
댓글 수: 2
Greg Heath
2014년 6월 16일
class = vec2ind(output) will give a 1 or 2 for each column of output.
If you know the correct class you can count the errors for each class and obtain the class per cent error rates.
Since each class is defined by multiple examples, how do you want to display the correct answer as a single image? The mean of the class members or the member that is the most similar?
Your choice.
primrose khaleed
2014년 6월 16일
편집: primrose khaleed
2014년 6월 16일
primrose khaleed
2014년 6월 15일
0 개 추천
댓글 수: 3
Greg Heath
2014년 6월 16일
Sorry, I am not familiar with image functions.
primrose khaleed
2014년 6월 16일
Image Analyst
2014년 6월 17일
Did you read his comment, and his flag?
primrose khaleed
2014년 6월 17일
댓글 수: 2
Greg Heath
2014년 6월 18일
No, it is not correct. You used the ANSWER block instead of the COMMENT BLOCK.
plotconfusion is for matrices (not vectors) of the same size. Use confusion otherwise.
primrose khaleed
2014년 6월 18일
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!