然後稍微檢查一下 tcl、tck 的版本與路徑

源代码在线查看: exampleg50c.m

软件大小: 45 K
上传用户: xiaoyunwang
关键词: tcl tck 版本
下载地址: 免注册下载 普通下载 VIP

相关代码

				% Example on how to use LDS on the g50c dataset								load g50c;								for i=1:10				  Xl = X(idxLabs(i,:),:)';  				  Xu = X(idxUnls(i,:),:)';				  Yl = y(idxLabs(i,:));				  Yu = y(idxUnls(i,:));				  				  opt.C = 0.1; % For this dataset, the classes overlap and it's				               % better to have a small value of C				  rho = 1;     % Anyvalue smaller than 3 is good (cf figure 5)				  Yp = lds(Xl,Xu,Yl,rho,opt);				  				  te(i) = mean( Yp.*Yu < 0 );				  fprintf('    -> Test error after %d split(s): %f\n\n',i,mean(te));				end;											

相关资源