亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dd_roc_old.m

?? 國外一學者開發的數據描述方法的源代碼
?? M
字號:
function [e,thr] = dd_roc_old(w,a,b,frac_rej)
% e = dd_roc_old(W,A,B,frac_rej)
%
% Find for a (data description) method W (trained with A) the
% Receiver Operating Characteristic curve over dataset B. The user can
% supply a vector of target rejection rates for which the ROC curve
% can be computed. These target rejection rates are then obtained for
% the training set A, and applied to the testing set B.
%
% The results are returned in e.  The first column gives the fraction
% of target objects rejected, the second column the fraction of
% outlier objects accepted.
%
% NOTE: people typically use this ROC definition: false positive FP
% (outlier accepted) on the x-axis, and true positive TP (target
% accepted) on the y-axis. You can retrieve that by using:
%   newe = [e(:,2) 1-e(:,1)]
% I choose to define my ROC curve consistent, i.e. both numbers
% indicates 'errors', so that the AUC is also easy to calculate.
%
% e = dd_roc_old(W,A)
%
% When no seperate training and testing set are given, the threshold
% is just varied over A, and the target rejection and outlier
% acceptance rates are calculated.
%
% see also dd_roc, dd_auc, dd_error.

% Copyright: D.M.J. 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

if (nargin<4)
  frac_rej = [0.01 0.025 0.05 0.075 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.5];
end
if (nargin==3) & (~isa(b,'dataset'))
  frac_rej = b;
  b = a;
end
if (nargin<3)
  b = a;
  frac_rej = 50;
end


% if frac_rej>1 then we just want to change the threshold, and we do
% not require a specific target rejection rate:
if max(length(frac_rej))==1 & frac_rej>1
  nrfrac = frac_rej;
  frac_rej = [];
else
  nrfrac = length(frac_rej);
end
e = zeros(nrfrac,2);

% all checks
if isa(w,'dataset')
  error('Please make W a mapping');
end

% map the labels of a and b to faster numerical labels:
%[nlaba,nlabb,lablist] = renumlab(getlab(a),getlab(b));
%a = dataset(+a,nlaba);
%b = dataset(+b,nlabb);

W = getdata(w);

if ~istrained(w)  % the mapping is untrained
    w = a*w;
end

% w should be a trained mapping, now compute the thresholds:
%if strcmp(getmapping_file(w),'nndd')
%  % Another exception, use leave-one-out from NNDD
%  W = getdata(w);
%  d =  dist2dens(log(W.fit),log(W.scale))
%else
  d = a*w;               %map the training set
%end

% check if we have sane results:
if ~all(isfinite(+d))
  error('Some strange classifier outputs: can you check your classifier?');
end

% first find out where the output for the target objects are stored:
tcolumn = strmatch('target ',getlab(w));
if tcolumn~=1
  % then we are probably using 'normal' prtools classifiers, and in
  % that case, the outputs should be normalized
  % I introduced this because I want to be sure that the classifier
  % outlier is indeed something like a 'target-class resemblance'.
  if abs(sum(sum(+d)) - size(d,1)) > 1e-9
    error('Are the classifier outputs normalized?');
  end
end
% and now extract the required 'resemblance to target set':
d = sort(+d(:,tcolumn));

% check if we have to use a logarithmic scale for the thresholds on
% the outputs, necessary for a smooth curve in for instance gauss_dd
% (it's exp(-.) result in very small values, so now and then).
if (d(end)>0 & d(end)<1e-10)
  dolog = 1;
else
  if d(end) - d(1) > 1e10
    dolog = 1;
  else
    dolog=0;
  end
end
if dolog>0
  % remove the zero entries (deadly for the log(.)):
  I = find(d==0);
  if length(I)>0
    d(I) = realmin;
  end
  d = log(d);
end
% now, do we want specific target rejection rates, or just change the
% threshold?
if isempty(frac_rej)
%  thr = linspace(d(1),d(end),nrfrac);
  N = size(a,1);
%  I = 1:(N-1)/nrfrac:N;
	I = linspace(1,N,nrfac+1);
  thr = d(round(I));
else
  frac = round(frac_rej*length(d));
  thr = zeros(nrfrac,1);  % computation thresholds:
  % take care for the extrema:
  for i=1:nrfrac
    if (frac(i)==0)
      thr(i) = d(1);
    else
      if (frac(i)==length(d))
        thr(i) = d(end);
      else
        thr(i) = (d(frac(i)) + d(frac(i)+1))/2;
      end
    end
  end
end

% use the threshold to test on set b:
[I1,I2] = find_target(b);
if isempty(I2)
  error([mfilename,': Cannot find outlier objects!']); 
end
d = b*w;
% check if we have sane results:
if ~all(isfinite(+d))
  error('Some strange classifier outputs: can you check your classifier?');
end

if dolog
  % remove the zero entries (deadly for the log(.)):
  I = find(d==0);
  if length(I)>0
    d(I) = realmin;
  end
  d = log(d);
end
for i=1:nrfrac
  e(i,1) = sum(d(I1,tcolumn)<thr(i));    % target objects rejected
  e(i,2) = sum(d(I2,tcolumn)>=thr(i));   % outlier objects accepted
end
e(:,1) = e(:,1)/length(I1);
e(:,2) = e(:,2)/length(I2);

return

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图欧美在线| 亚洲自拍偷拍欧美| gogo大胆日本视频一区| 国产一区二区三区电影在线观看| 精品sm在线观看| 国产在线精品一区在线观看麻豆| 国产三级精品视频| 成人一二三区视频| 中文字幕精品一区二区精品绿巨人| 成人免费毛片嘿嘿连载视频| 亚洲色图.com| 欧美另类一区二区三区| 韩国av一区二区三区四区| 国产精品欧美精品| 欧美疯狂性受xxxxx喷水图片| 亚洲成人综合在线| 久久久噜噜噜久噜久久综合| 色综合久久久久久久久| 天天色综合成人网| 国产免费成人在线视频| 欧美一a一片一级一片| 久久99精品国产麻豆婷婷洗澡| 国产黑丝在线一区二区三区| 亚洲免费在线看| 91精品国产麻豆国产自产在线| 成人手机电影网| 亚洲免费av观看| 国产午夜亚洲精品理论片色戒| 欧美日韩精品一区二区三区蜜桃 | 偷偷要91色婷婷| 国产精品欧美经典| 欧美精品v日韩精品v韩国精品v| www.亚洲色图| 香蕉成人啪国产精品视频综合网| 国产日产欧产精品推荐色| 99久久精品国产一区| 国产一区二区久久| 日韩国产精品久久久久久亚洲| 综合精品久久久| 国产日韩欧美精品电影三级在线| 欧美va亚洲va国产综合| 欧美日韩三级视频| 欧日韩精品视频| 在线日韩一区二区| 91视频.com| 色综合久久久久综合99| 国产精品香蕉一区二区三区| 久久99日本精品| 麻豆精品一区二区综合av| 欧美日韩在线播放| 色呦呦一区二区三区| 波多野结衣91| 福利视频网站一区二区三区| 狠狠色狠狠色合久久伊人| 国产一区二区主播在线| 狠狠久久亚洲欧美| 精品一区二区三区视频在线观看| 日韩av不卡一区二区| 国内精品久久久久影院色| 国产亚洲人成网站| 久久综合99re88久久爱| 中文字幕中文字幕一区| 亚洲自拍偷拍麻豆| 亚洲免费av高清| 亚洲少妇中出一区| 亚洲一区在线观看网站| 夜夜嗨av一区二区三区网页| 一区二区三区四区精品在线视频| 夜夜嗨av一区二区三区网页| 日韩精品电影一区亚洲| 麻豆极品一区二区三区| 国产一区二区调教| 色婷婷综合视频在线观看| 在线视频国内自拍亚洲视频| 欧美日韩不卡一区二区| 日韩精品综合一本久道在线视频| 久久久不卡网国产精品二区| 亚洲桃色在线一区| 麻豆精品视频在线观看| 一本色道a无线码一区v| 国产99久久精品| 精品久久久久久久久久久久久久久久久| 亚洲午夜激情网页| 粉嫩久久99精品久久久久久夜| 4438亚洲最大| 一区二区三区中文字幕精品精品| 国内精品在线播放| 欧美日韩电影在线播放| 中文子幕无线码一区tr| 看国产成人h片视频| 欧美日韩成人综合| 亚洲美女免费视频| 国产一区二区在线影院| 欧美精品第1页| 一区二区三区在线高清| 不卡的av中国片| 精品欧美一区二区在线观看 | 精品国产乱码久久久久久影片| 亚洲欧美激情小说另类| 国产精品白丝av| 欧美精品一区二区三区蜜桃| 日本不卡免费在线视频| 91精品国产麻豆国产自产在线 | 国产成人三级在线观看| 88在线观看91蜜桃国自产| 一区二区三区成人| 菠萝蜜视频在线观看一区| 91麻豆精品国产91久久久久| 亚洲精品欧美激情| 色综合天天性综合| 国产精品嫩草久久久久| 国产一区二区伦理| 3d成人h动漫网站入口| 一区二区三区在线观看视频| 91麻豆精品在线观看| 亚洲视频一区二区免费在线观看| 成人av资源在线| 欧美国产日韩一二三区| 成a人片国产精品| 亚洲私人影院在线观看| 欧美日韩在线直播| 亚洲一区二区在线免费观看视频| 色一区在线观看| 18欧美亚洲精品| 欧美视频自拍偷拍| 日本午夜一本久久久综合| 日韩精品自拍偷拍| 国产成人精品影视| 亚洲人成网站色在线观看| 91国偷自产一区二区使用方法| 亚洲大型综合色站| 精品日韩99亚洲| 99精品桃花视频在线观看| 亚洲成人动漫在线观看| 日韩精品一区二区三区在线观看| 日韩国产一二三区| 欧美精品一区二区三区一线天视频 | 日本道免费精品一区二区三区| 免播放器亚洲一区| 亚洲欧美乱综合| 日韩欧美精品三级| 欧美午夜片在线观看| 精品国产乱码久久| 欧美在线高清视频| 成人美女在线观看| 国产真实精品久久二三区| 亚洲综合色视频| 中文字幕中文在线不卡住| 精品国产凹凸成av人导航| 欧美日韩性生活| 91国产视频在线观看| 成人一区二区三区| 国产经典欧美精品| 日韩精品一二三四| 夜夜嗨av一区二区三区网页| 亚洲色图制服诱惑 | 国产女主播一区| 日韩精品一区二区三区在线观看| 欧美亚洲综合另类| 色爱区综合激月婷婷| 99re在线视频这里只有精品| 国产精品888| 国产一区999| 国产在线国偷精品产拍免费yy| 久久精品国产第一区二区三区| 一区二区高清视频在线观看| 亚洲免费观看在线视频| 国产精品传媒在线| 成人欧美一区二区三区小说| 欧美韩日一区二区三区四区| 久久久午夜电影| 国产精品女上位| 亚洲精品网站在线观看| 亚洲最色的网站| 日韩精品电影一区亚洲| 精品在线一区二区| 国产成人aaaa| 91麻豆国产香蕉久久精品| 91麻豆精东视频| 在线电影国产精品| 日韩视频国产视频| 国产性做久久久久久| 中文字幕一区二区不卡| 亚洲精品高清在线| 蜜桃视频一区二区三区在线观看| 九色|91porny| 一本大道久久a久久综合| 欧美日产在线观看| 国产人久久人人人人爽| 一区二区三区四区激情| 另类调教123区| 91色视频在线| 2024国产精品| 玉米视频成人免费看| 激情综合五月婷婷| 91美女视频网站| 久久久www成人免费毛片麻豆| 亚洲一卡二卡三卡四卡无卡久久| 久久99国产乱子伦精品免费| jizzjizzjizz欧美|