Clear Filters
Clear Filters

how to extract the labels from the prdataset

3 views (last 30 days)
I am tring to use dd_tools to do svdd calssification .I do not know how to get the result.please help who is familiar with dd_tools.
a = gendatb([30 30]);
% make the second class the target class and change the labels:
a = oc_set(a,'1');
% only use target class:
a = target_class(a);
% generate test data:
b = oc_set(gendatb(200),'1');
% train svdd
w=svdd(a,0.1,3);
%test svdd
c=b*w.
how can I see the result of c.i.e. the labels of c. for example, the real labels of c is 1 1 -1 -1 . the output is 1 1 1 1,so that i know that c_3 and c_4 was classified into wrong class.

Answers (0)

Categories

Find more on Install Products in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!