SVM交叉验证的代码
function[bestacc,bestc,bestg]=SVMcg(train_label,train,cmin,cmax,gmin,gmax,v,cstep,gstep,accstep)ifnargin<10accstep=1.5;endifnargin<7accstep=1.5;v=3;cstep=1;gstep=1;endifnargin<6accstep=1.5;v=3;cstep=1;gstep=1;gmax=5;endifnargin<5accstep=1
发表于 2015/9/6 上午10:37:55
阅读(3252)
- 1
