⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createcvrealdata.m

📁 支持向量机SVM和核函数的MATLAB程序集
💻 M
字号:
clear all
close all
clc

nbitermax=100;
ratio=0.6;  %need to add a 

classcode=[1 -1];


datafile={'colon'};
%datafile={'wpbc' 'sonar'};
for i=1:length(datafile);
    data=datafile{i};
    
    
    file=['../../data/' data '/' data '.mat'];
    load(file);
    nbtrain = round (size(x,1)*ratio); 
    
    
    for iter=1:nbitermax
        [xapp,yapp,xtest,ytest,indice(iter)]=CreateDataAppTest(x,y,nbtrain, classcode);
    end;
    
    filesave=['CV-' data '-ratio-' int2str(ratio*100) '.mat'];
    save(filesave, 'indice')
end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -