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

📄 run_sup.m

📁 Multiple INstance Learning Library
💻 M
字号:
function accu = run_sup(data_file)

% degree = [1 2 3];
% cost = [1 10 100];
% 
% for i = 1 : length(degree)
%     for j = 1 : length(cost)
%         cmd = ['classify -t ' data_file ' -if 1 -sf 1 -n 0 -- cross_validate -t 10 -- LibSVM -Kernel 1 -KernelParam ' num2str(degree(i)) ' -CostFactor ' num2str(cost(j))]; 
%         test_classify(cmd);
%     end
% end

gamma = [0.01 0.05];
cost = [1 10 100];
for i = 1 : length(gamma)
    for j = 1 : length(cost)
        cmd = ['classify -t ' data_file ' -if 1 -sf 1 -n 0 -- cross_validate -t 10 -- LibSVM -Kernel 2 -KernelParam ' num2str(gamma(i)) ' -CostFactor ' num2str(cost(j))]; 
        test_classify(cmd);
    end
end

⌨️ 快捷键说明

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