how to extract the labels from the prdataset

조회 수: 3 (최근 30일)
HC Song
HC Song 2016년 3월 25일
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