Suppose we have a dataset A derived from images. So A(n,:) contains the
features of image n.
During construction of A objects receive an identifier wich can be inspected
by getident(A,’ident’);
Suppose it has been split in a training set and a testset, a classifier is
constructed and the testset is classified:
[trainset,testset] = gendat(A,0.5);
W = trainset*fisherc;
elab = testset*W*labeld;
elab contains the estimated labels. Let’s find where they are incorrect, i.e.
different from the true labels of the testset.
N = find(~isequal(elab,getlabels(testset)));
In N the indices of the incorrectly classified testobjects are stored. If we find
the coressponding object identifiers, stored in testset, we can trace this back to
A and images:
Ntestset_ident = getident(testset,N);
J = findident(A,Ntestset_ident);
J contains the indices in A of the erroneously classified testobject generated from A.
Depending on how A was constructed from the images, J points thereby to the images that
should be displayed. (If A is constructed by a dataset command J equals Ntestset_ident,
so the last statement might not be needed).
Best regards,
Bob Duin
Now we have to find to which objects in A these