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

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

?? dd_roc_old.m

?? SVDD的工具箱
?? 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一区二区三区免费野_久草精品视频
heyzo一本久久综合| 精品久久久久久久久久久院品网| 欧美成人video| 午夜伊人狠狠久久| 欧美性大战久久久| 日韩制服丝袜av| 久久这里只有精品6| 国产剧情一区二区| 亚洲一区二区欧美日韩| 欧美大片拔萝卜| 国产麻豆精品95视频| 国产欧美综合在线观看第十页| 丁香婷婷深情五月亚洲| 亚洲欧美另类综合偷拍| 91麻豆精品国产91久久久| 美女mm1313爽爽久久久蜜臀| 久久精品水蜜桃av综合天堂| 久久99深爱久久99精品| 一区二区三区四区蜜桃| 日韩一级二级三级精品视频| 国模无码大尺度一区二区三区| 亚洲国产精品激情在线观看| 欧美视频一二三区| 91蜜桃网址入口| 国产一区二区三区四区五区入口 | 99在线视频精品| 日韩黄色片在线观看| 国产精品少妇自拍| 亚洲精品在线观看视频| 欧美日韩一区三区四区| 国产99精品视频| 国产成人激情av| 日韩国产欧美在线视频| 亚洲精品高清在线观看| 中文字幕一区二区三区在线播放| 精品久久久久一区二区国产| 91浏览器入口在线观看| 国产乱淫av一区二区三区| 国产伦精品一区二区三区在线观看 | 欧洲精品中文字幕| 国产经典欧美精品| www.成人在线| 欧美日韩免费视频| 欧美性猛片aaaaaaa做受| 欧美日韩精品一区二区天天拍小说| 福利一区福利二区| www.亚洲人| 99精品视频一区二区三区| 色偷偷一区二区三区| 欧洲精品一区二区三区在线观看| 欧美色图免费看| 日韩一区二区三区视频| 精品欧美一区二区久久| 亚洲同性同志一二三专区| 亚洲一区二区欧美日韩| 国产精品自在欧美一区| 欧美在线不卡视频| 日韩欧美国产一区二区三区| 久久综合色一综合色88| 樱花影视一区二区| 国产一区999| 欧美无乱码久久久免费午夜一区| 精品国产露脸精彩对白| 亚洲欧洲国产日韩| 激情五月激情综合网| 91国产成人在线| 中文字幕欧美激情| 激情六月婷婷久久| 欧美视频日韩视频在线观看| 成人免费在线观看入口| 国产一区二区在线免费观看| 在线中文字幕一区二区| 在线播放一区二区三区| 国产精品黄色在线观看| 国产呦萝稀缺另类资源| 精品日韩一区二区| 免费成人深夜小野草| 欧美男生操女生| 老司机精品视频导航| 欧洲色大大久久| 亚洲一二三四在线观看| 欧美视频日韩视频在线观看| 国产精品理论在线观看| 色网站国产精品| 丝袜美腿成人在线| 欧美成人精品1314www| 精品一区二区三区av| 91精品麻豆日日躁夜夜躁| 久久久.com| 美腿丝袜亚洲综合| 天天综合色天天| 亚洲.国产.中文慕字在线| 91一区二区在线观看| 午夜成人免费视频| 精品成a人在线观看| 成人一区二区视频| 亚洲3atv精品一区二区三区| 日韩欧美国产1| 高清不卡在线观看av| 综合亚洲深深色噜噜狠狠网站| 欧美日本国产视频| 国产成a人无v码亚洲福利| 亚洲欧美另类久久久精品2019| 91精品蜜臀在线一区尤物| 国产制服丝袜一区| 午夜视频久久久久久| 国产精品美女一区二区三区 | 日韩中文字幕91| 国产亚洲一区二区三区在线观看 | 韩国女主播一区| 视频精品一区二区| 亚洲欧美另类综合偷拍| 久久你懂得1024| 欧美精品色综合| 日本韩国欧美在线| 国产麻豆精品一区二区| 奇米精品一区二区三区在线观看 | 久久精品夜夜夜夜久久| 欧美在线免费播放| eeuss鲁一区二区三区| 久久99精品国产.久久久久久| 亚洲影视在线播放| 一区二区三区国产豹纹内裤在线| 欧美韩国一区二区| 国产欧美一区在线| 亚洲国产精华液网站w| 国产女人18毛片水真多成人如厕| 精品国产麻豆免费人成网站| 精品国产乱码久久久久久1区2区 | 亚洲一区二区欧美| 亚洲va欧美va国产va天堂影院| 亚洲成人综合视频| 亚洲成在线观看| 久久aⅴ国产欧美74aaa| 奇米精品一区二区三区在线观看 | 亚洲福中文字幕伊人影院| 亚洲夂夂婷婷色拍ww47| 久久国产精品第一页| 国产综合一区二区| 在线一区二区三区四区| 欧美丰满一区二区免费视频| 666欧美在线视频| 国产精品美女久久久久久 | 欧美综合久久久| 久久综合国产精品| 国产亚洲精品精华液| 日本不卡一区二区| 成人高清免费观看| 久久久久久97三级| 五月天婷婷综合| 色综合久久天天综合网| 69久久夜色精品国产69蝌蚪网| 欧美一区二区三区思思人| 亚洲欧美在线高清| 高清不卡一区二区在线| 久久免费国产精品| 天堂蜜桃91精品| 欧美日韩综合在线| 中文字幕一区二区三区不卡在线| 奇米一区二区三区av| 欧美日韩一区二区三区高清| 亚洲欧美另类综合偷拍| 激情文学综合丁香| 欧美调教femdomvk| 午夜视频在线观看一区二区| 一本色道**综合亚洲精品蜜桃冫| 国产精品入口麻豆原神| 成人午夜电影网站| 亚洲乱码日产精品bd| 成人激情免费视频| 国产精品毛片无遮挡高清| 经典三级一区二区| 国产视频一区在线观看| 成人免费视频网站在线观看| 日韩久久久精品| 国产在线视视频有精品| 国产精品久久久久久久午夜片| 久久精品噜噜噜成人av农村| 国产婷婷色一区二区三区在线| 激情小说亚洲一区| 亚洲色图欧洲色图| 欧美一区二区三区在线电影| 国产成人av电影| 亚洲一区二区偷拍精品| 国产午夜精品一区二区 | 91色|porny| 国产综合久久久久影院| 亚洲精品免费在线播放| 精品少妇一区二区三区免费观看| 精品一区二区三区免费视频| 国产婷婷一区二区| 欧美不卡123| 欧美日本视频在线| 日本久久一区二区| 高清国产一区二区| 麻豆91精品视频| 亚洲在线视频一区| 一区免费观看视频| 国产农村妇女毛片精品久久麻豆| 欧美高清性hdvideosex|