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

📄 write_cmd.m

📁 libsvm is a simple, easy-to-use, and efficient software for SVM classification and regression. It s
💻 M
字号:
function write_cmd(value_lambda, value_gamma, fname_train, fname_model)



%    This function is to write  "parameters", "training file name" and "output-model file name" 
%    into a " .m" Matlab file (namely, "svm_cmd.m", defined below ), which will run SVM machine.




value_t=2;  %%%%% value_t=2  means we take RBF  kernel

fid=fopen('svm_cmd.m','wt');

string=[fname_train,' ',fname_model];

fprintf(fid,['!svmtrain -t %i -c %g -g %g ', string], [value_t, value_lambda, value_gamma]);

fclose(fid);

fclose all;

⌨️ 快捷键说明

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