examplemodsel.m
来自「然後稍微檢查一下 tcl、tck 的版本與路徑」· M 代码 · 共 21 行
M
21 行
load g50c;i = 1;Xl = X(idxLabs(i,:),:)'; Xu = X(idxUnls(i,:),:)';Yl = y(idxLabs(i,:));Yu = y(idxUnls(i,:));opt.C = 100; % large C performs bestopt.delta = -50; % Take only 50 components to go fasteropt.splits = mat2cell(1:50,1,10*ones(1,5)); % 5 fold cross-validationfor i=1:6 rho = 4^(i-2); [Yp,err] = lds(Xl,Xu,Yl,rho,opt); te(i) = mean( Yp.*Yu < 0 ); cv(i) = mean(err);end;[te; cv] % Compare the test and cv errors for the diffirent values of rho
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?