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

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

?? oc_set.m

?? SVDD的工具箱
?? M
字號:
function [a,I] = oc_set(a,clnr)% OC_SET  makes an one-class dataset%%     A = OC_SET(A,CLNR)%% Change a normal dataset A into an one-class dataset: the class% indicated by the classnr (CLNR) is made target class and all other% data becomes outliers class. The labels are changed to 'target' and% 'outlier'.%% It is also possible to use a class label:%%    A = OC_SET(A,LABEL)%% but then the type of the label should be a char (else you cannot% distinguish it from a class number, can you?:-))%%    [A,I] = OC_SET(A,LABEL)%% As a second output argument an index vector I is returned, indicating% which objects are target (I=1) or outlier (I=2).%%% See also: target_class, find_target, gendatoc, isocset% 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 Netherlandsif (nargin<2)	clnr = 1;end% I have to check Prtools somewhere...:checkprversion;% First check if there is more than one label indicating the target% class, then we will recursively call oc_set.if ~ischar(clnr) & size(clnr,2)>1,	clnr = clnr';endif size(clnr,1)>1 % we have more than 1 label	I = [];	% go along each class and extract the indices of the objects	% belonging	for i=1:size(clnr,1)		[tmpx,tmpI] = oc_set(a,clnr(i,:));		I = [I; find(tmpI==1)];	end	nlab = repmat(2,size(a,1),1);	nlab(I) = 1;	%a = dataset(a,nlab,'lablist',['target ';'outlier']);	a = dataset(a,nlab);	a = setlablist(a);	a = set(a,'lablist',['target ';'outlier']);	% and fix the new dataset name:	clname = sprintf('%d classes as target',size(clnr,1));	a = setname(a,[getname(a),' (',clname,')']);	%a = setprior(a,[]);	returnend% If a is just a Matlab array, everything becomes target data:if ~isa(a,'dataset')	m = size(a,1);	a = dataset(a,ones(m,1),'lablist','target');	a = setprior(a,1);	I = ones(m,1);	return;else	% first unpack the clnr, if it was just a single entry in a	% cell-array:	if isa(clnr,'cell')		clnr = clnr{1};	end	if is_ocset(a)				% If we are given an one-class dataset, the only possibility is		% that we have to switch the target-outlier labels.		if (isa(clnr,'char') & strcmp(clnr,'outlier')) | ...			(isa(clnr,'double') & clnr<0)		% That is the case, we swap the classes. We just swap		% the labels by changing nlab so we can later search for 'target'		% instead of 'outlier':			% Now we check if we are not dealing with strange situations			% that all data is of one of the classes:			if getsize(a,3)==2				% Ok, swap the labels				a = set(a,'nlab',3-getnlab(a));			else				% we only have one class				if strcmp(getlablist(a),'outlier')					% and this class is indeed outlier					a = setlablist(a,'target');				else					% we only have target data in the dataset, but we are					% requesting outliers: problem! Return an empty dataset:					a = setlablist(a,'outlier');				end			end		end		%else we have already a correct oneclass dataset		I = repmat(2,size(a,1),1);		I(find_target(a)) = 1;		return;	end	% Now we have to work, detect the label in the dataset:	[nlab,lablist] = getnlab(a);	if isempty(lablist)		warning('dd_tools:UnlabeledDataset',...			'This dataset is unlabeled: all data is considered target.');		[a,I] = oc_set(+a);		return	end		[m,k,c] = getsize(a,1);	% This is a hack:	% If the lablist contains characters, but all character values are	% smaller than 32 (smaller ASCI value), than something went probabily	% wrong, and then we assume it were just doubles. This happens for	% instance in the NIST dataset:-(	if isa(lablist,'char')		if length(find(lablist<32))==size(lablist,1)			a = set(a,'lablist',double(lablist));		end	end	% Depending on the type of label, we have to do other things:	if isa(clnr,'char')		% We have to string-match with the lablist		if isa(lablist,'double')			% If the lablist is a number, we'd better change the clnr also			% to a number			clnr = str2num(clnr);			if ~isempty(clnr)				clnr = find(lablist==clnr);			%else the clnr was a label-string and not a number, so it will			%not match anyway			end		else % Lablist is character			% Ok, we get a bit inconsistent behaviour here. It might be			% that when the dataset contains just target objects, the label			% becomes 'target' without trailing ' '. Then the strmatch has			% to be switched. When also outliers are present, there will be			% always this trailing ' ', so then we don't have a problem.			% (Thanks Piotr!:-)			if (c==1)				clnr = strmatch(lablist,clnr);			else				clnr = strmatch(clnr,lablist);			end		end	end	% Make the new labels, target objects get 1, outlier objects get 2:	if isempty(clnr)		% everything becomes outlier		I = repmat(2,m,1);	else		% Otherwise apply the hard fought for clnr:		I = 2-(nlab==clnr);	end		% Now construct the dataset:	labelnames = str2mat('target', 'outlier');	a = set(a,'labels',labelnames(I,:));	% and fix the new dataset name:	if (clnr<=size(lablist,1))		clname = lablist(clnr,:);	else		clname = clnr;	end	if isa(clname,'double')		clname = num2str(clname);	end	if ~isempty(clname)		a = setname(a,[getname(a),' (targetcl. ',deblank(clname),')']);	end	a = setprior(a,getprior(a,0));% hmmm, is this the right thing to do??	% Maybe we should give some message?	if isempty(clname)		fprintf('No target class found.\n');	else		%fprintf('Class %s is used as target class.\n',deblank(clname));	end	endreturn

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情五月播播久久久精品| 在线观看免费视频综合| 欧美mv日韩mv亚洲| 国产一区二区毛片| 中文字幕一区视频| 在线亚洲免费视频| 日本午夜精品视频在线观看| 欧美一卡2卡3卡4卡| 国产一区久久久| 最新高清无码专区| 91成人在线精品| 美美哒免费高清在线观看视频一区二区| 日韩一区二区精品在线观看| 国产一区二区免费视频| 精品在线观看免费| 中文字幕精品一区| 欧美性色黄大片| 人妖欧美一区二区| 亚洲欧美怡红院| 日韩一级高清毛片| 91麻豆福利精品推荐| 五月婷婷激情综合| 中文字幕的久久| 欧美视频自拍偷拍| 九一久久久久久| 最近日韩中文字幕| 精品处破学生在线二十三| 91网站视频在线观看| 秋霞午夜av一区二区三区| 欧美国产日韩一二三区| 欧美精品九九99久久| 波多野结衣在线一区| 一区二区三区欧美视频| 精品国产亚洲一区二区三区在线观看| 色噜噜夜夜夜综合网| 国产精品一区三区| 久久精品国产第一区二区三区| 亚洲欧美日韩一区二区三区在线观看| 欧美图片一区二区三区| 99re这里都是精品| 成人午夜在线免费| 国产一区二区三区不卡在线观看 | 波多野结衣中文一区| 极品少妇一区二区| 亚洲一区二区偷拍精品| 亚洲日本欧美天堂| 中文字幕中文乱码欧美一区二区 | www.日韩精品| 国产91精品露脸国语对白| 韩日精品视频一区| 激情五月婷婷综合| 91黄色激情网站| 99精品欧美一区二区三区小说| 国产精品综合av一区二区国产馆| 老司机免费视频一区二区| 秋霞电影一区二区| 青青草视频一区| 美女高潮久久久| 国产在线国偷精品产拍免费yy| 国产在线国偷精品产拍免费yy| 国产麻豆精品95视频| 久久成人免费网站| 国产麻豆精品一区二区| 国产91丝袜在线播放0| 成人三级在线视频| 99这里都是精品| aaa欧美大片| 欧美日韩亚洲另类| 欧美tickling网站挠脚心| 久久久亚洲午夜电影| 中文字幕精品三区| 亚洲欧美另类图片小说| 五月综合激情婷婷六月色窝| 日韩成人一区二区| 极品少妇xxxx精品少妇| 成人av午夜影院| 欧美精品色综合| 欧美成人乱码一区二区三区| 日本一区二区综合亚洲| 亚洲一区二区偷拍精品| 欧美艳星brazzers| 日韩一区二区三区电影在线观看| 国产色产综合色产在线视频| 亚洲欧美日韩国产一区二区三区| 视频一区视频二区中文| 国产精品一品二品| 欧美日韩第一区日日骚| 欧美精品一区二区三区四区| 国产精品福利一区二区| 日本91福利区| 91美女片黄在线观看91美女| 日韩欧美一级精品久久| 亚洲激情av在线| 国内精品视频一区二区三区八戒| 91网站最新地址| 久久网这里都是精品| 亚洲成年人影院| 成人教育av在线| 日韩一区二区三区电影在线观看| 一区二区三区中文字幕在线观看| 日韩电影在线观看一区| 色婷婷亚洲婷婷| 国产欧美精品在线观看| 视频在线观看91| 色综合婷婷久久| 国产日韩在线不卡| 精品系列免费在线观看| 欧美在线999| 亚洲日本丝袜连裤袜办公室| 国产成人亚洲综合a∨婷婷 | 亚洲午夜精品网| 国产成人免费视| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美剧情片在线观看| 国产精品久久久久久久蜜臀| 极品美女销魂一区二区三区免费| 91精品国产欧美一区二区18| 亚洲综合免费观看高清在线观看| 国产+成+人+亚洲欧洲自线| 欧美电视剧在线看免费| 免费一级片91| 51精品秘密在线观看| 亚洲综合一区在线| 99精品1区2区| 亚洲乱码国产乱码精品精98午夜| 激情综合色综合久久| 欧美一级理论性理论a| 午夜私人影院久久久久| 欧美色图片你懂的| 亚洲国产美女搞黄色| 欧美日韩精品一区二区天天拍小说 | 欧美日韩一区二区三区免费看| 亚洲欧洲精品一区二区三区 | 亚洲不卡av一区二区三区| 日本道色综合久久| 一区二区三区产品免费精品久久75| 色哟哟一区二区在线观看| 亚洲男人的天堂av| 欧美三级资源在线| 蜜臀精品一区二区三区在线观看 | 久久久亚洲精品石原莉奈 | 亚洲精品乱码久久久久久久久 | 欧美高清性hdvideosex| 视频一区欧美精品| 欧美成人欧美edvon| 国产成a人亚洲| 亚洲欧美日韩电影| 69堂成人精品免费视频| 国产美女一区二区| 亚洲精选在线视频| 日韩欧美的一区| 国产成人av影院| 亚洲一级在线观看| 日韩欧美国产成人一区二区| 国产成人av一区| 亚洲国产中文字幕| 91精品国产一区二区三区香蕉| 九九**精品视频免费播放| 日本一区二区综合亚洲| 欧美视频一区在线观看| 精品一区二区三区日韩| 成人欧美一区二区三区1314| 欧美精品v国产精品v日韩精品 | 国产成人自拍网| 亚洲人成网站精品片在线观看| 欧美日韩美少妇| 高清不卡在线观看av| 亚洲成a人片综合在线| 国产亚洲va综合人人澡精品| 欧美私模裸体表演在线观看| 国产精品资源在线观看| 亚洲一区中文在线| 久久久精品影视| 欧美一级一级性生活免费录像| 成人福利视频在线| 美女视频一区在线观看| 亚洲男帅同性gay1069| 国产日产欧产精品推荐色 | 日本sm残虐另类| 一片黄亚洲嫩模| 欧美韩国日本不卡| 日韩你懂的在线播放| 欧美午夜影院一区| 国产**成人网毛片九色| 经典三级在线一区| 日韩主播视频在线| 亚洲精品国产无天堂网2021| 久久午夜免费电影| 日韩精品一区二区三区三区免费| 色婷婷综合在线| www.综合网.com| 国产高清久久久久| 国产一区二区三区四| 毛片基地黄久久久久久天堂| 亚洲线精品一区二区三区八戒| 中国av一区二区三区| 国产天堂亚洲国产碰碰| 国产人成一区二区三区影院| 日韩亚洲欧美在线| 日韩午夜在线播放|