Dear Pavel,
Thank you a lot! You realy help me in this new area for me.
Now I can train and test. But I get a bit strange result. The plot you can see in attachment. The lokation of trained area is not exactly right. The Plot_5 looks a bit better then Plot_1, but still not very nice :(
And I dont understand a confusion matrix, that I got:
True Labels Decisions
1 1 1 non-1 … non-1 non-1 non-1 non-1 Totals
1 0.000 0.000 0.000 0.000 … 0.000 1.000 1.000 1.000 1.00
1 1.000 1.000 1.000 1.000 … 1.000 1.000 1.000
It is very big, I took just the beginning and the end of it.
My code looks so:
function one_class (datafile, person_ID)
[A, ts, tr]=dataset_1(datafile, person_ID);
W = pca(tr,2);
tr2=tr*W;
pd=sddetector(tr2,'1',sdmixture,'reject',0.1);
sdscatter(tr2,pd);
sdconfmat(getlab(ts),ts*W*pd)
sdscatter(ts*W,pd);
return
[A, ts, tr]=dataset_1(datafile, person_ID); - is a function, that returns A -dataset of all instances, ts - test set, tr - training set
Could you recommend something to improve this training?
Cheers,
Valeria

Click thumbnail to see full-size image