how to extract the labels from the prdataset

2 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by