📄 relabel.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.% Copyright: D. Tax, R.P.W. Duin, davidt@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlands[nlab,lablist,m,k,c,prob,featlist,imheight] = dataset(a);if (c~=size(newlab,1)) error('Number of new labels should be equal to number of classes');endb = dataset(+a,newlab(nlab),featlist,prob,newlab,imheight);return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -