我将使用带有多项式核的scikit SVC,格式如下:(1 + xTn.xm)^4。其中,xTn是转置后的xn值,意思是(一加上xTn.xm的乘积)的4次方。
当我查看scikit文档时,他们指定了SVC的参数:
degree : int, optional (default=3)
| Degree of kernel function.
| It is significant only in 'poly' and 'sigmoid'.
|
| gamma : float, optional (default=0.0)
| Kernel coefficient for 'rbf' and 'poly'.
| If gamma is 0.0 then 1/n_features will be used instead.
|
| coef0 : float, optional (default=0.0)
| Independent term in kernel function.
| It is only significant in 'poly' and 'sigmoid'.
参数"degree"很重要,我应该使用4。 参数"coef0"也很关键,我应该使用值为1。这是正确的吗? 在“Poly”情况下gamma非常不清楚。我应该使用哪个值作为gamma?
gamma
、coef0
和degree
如何相互影响的详细信息,请参阅叙述性文档中的相应部分::ref:svm_kernels
。 - Andreas Mueller