相关疑难解决方法(0)

在svm scikit中,class weight = none和auto之间的区别是什么?

在scikit中学习svm分类器class_weight = None和class_weight = Auto之间的区别是什么.

从文档中可以看出

将类i的参数C设置为SVC的class_weight [i]*C. 如果没有给出,所有课程都应该有一个重量."自动"模式使用y的值自动调整与类频率成反比的权重.

class sklearn.svm.SVC(C=1.0, kernel='rbf', degree=3, gamma=0.0, coef0=0.0, shrinking=True, probability=False, tol=0.001, cache_size=200, class_weight=None, verbose=False, max_iter=-1, random_state=None)
Run Code Online (Sandbox Code Playgroud)

但是使用自动模式有什么好处.我无法理解它的实现.

python machine-learning scikit-learn

4
推荐指数
2
解决办法
8206
查看次数

标签 统计

machine-learning ×1

python ×1

scikit-learn ×1