Not enough information. Post your code.
How many classes? c = ?
How many input vectors per class?
What version of NNTBX?
Are you using patternnet or the obsolete newpr?
Convert the original c-class target matrix, target0, to c-dimensional unit matrix column form so that size(target) = [ c N ] and sum(target) = ones(1,N). Then class indices are obtained from
classind = vec2ind(target) % class indices
Use 'trainscg' and { 'tansig' 'logsig' }
[net tr ] = train(net,input,target);
tr = tr % reveals training details. Check it out!
newclassind = vec2ind(net(newinput))
Hope this helps.
Thank you for accepting my answer
Greg
Best Answer