how to extract the labels from the prdataset

2 ビュー (過去 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 Center および File ExchangeClassification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by