Parameters 如何在训练支持向量机模型时调整参数

Parameters 如何在训练支持向量机模型时调整参数,parameters,machine-learning,svm,Parameters,Machine Learning,Svm,如果我使用rbf作为核函数,那么必须调整两个参数(c和g)。我可以搜索每个参数对(ci,gi),并选择最佳的参数对。有没有更好的方法来找到最佳参数。突出显示如下: 并从交叉验证的角度分析了这种方法工作良好的原因。基本上避免了为所有或仅一个数据点更改决策函数 此外,您还可以在SVM中搜索参数选择的“启发式方法”。例如,在年,与穷举网格搜索相比,作者应用了改进参数搜索效率的方法 To pick, say 1000 pairs (x,x’) at random from your dataset,

如果我使用
rbf
作为核函数,那么必须调整两个参数(
c
g
)。我可以搜索每个参数对(
ci
gi
),并选择最佳的参数对。有没有更好的方法来找到最佳参数。

突出显示如下:

并从交叉验证的角度分析了这种方法工作良好的原因。基本上避免了为所有或仅一个数据点更改决策函数

此外,您还可以在SVM中搜索参数选择的“启发式方法”。例如,在年,与穷举网格搜索相比,作者应用了改进参数搜索效率的方法

To pick, say 1000 pairs (x,x’) at random from your dataset, compute the distance
of all such pairs and take the median, the 0.1 and the 0.9 quantile. Now pick λ 
to be the inverse any of these three numbers. With a little bit of cross 
validation you will figure out which one of the three is best. In most cases you 
won’t need to search any further.