📄 reject.m
字号:
%REJECT Compute error-reject trade-off curve% % e = reject(D)% % Computes the error-reject curve of the classification result% D = A*W, in which A is a dataset and W a classifier. e is a % set of (reject;error) rates. Use plot2(e) for plotting the % result% % See also: mappings, plot2, roc, testd% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction e = reject(D)if nargin == 0 | isempty(D) e = mapping('reject','fixed'); returnend[e,n] = nstrcmp(classd(D),getlab(D));if size(D,2) == 1 D = [D -D];end[y,J] = sort(max(+D,[],2));n = 1-n(J)';m = length(n);e = [[0:m]; e e-cumsum(n)]/m;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -