⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 relabel.m

📁 data description toolbox 1.6 单类分类器工具包
💻 M
字号:
function b = relabel(a,newlab)% B = relabel(A,newlab)%% Rename the labels in dataset A to newlab. Of course, the length of% newlab should be equal to the lablist of dataset A. The first class% from the lablist will get the first label in newlab. %% This function is useful when from a dataset A, several classes are% to be renamed to 'target' and the rest to outlier class. If just a% single class should be named 'target' then target_class or oc_set% should be used.%% See also: find_target, gendatoc, target_class, oc_set% Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org% Faculty EWI, Delft University of Technology% P.O. Box 5031, 2600 GA Delft, The Netherlandsisdataset(a);[m,k,c] = getsize(a);if (c~=size(newlab,1))  error('Number of new labels should be equal to number of classes');endb = set(a,'lablist',newlab);return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -