machine-learning - Scikit 学习支持向量机的多类分类

标签 machine-learning scikit-learn svm scikits

我想知道LinearSVC默认情况下是否支持多类分类,或者我们是否必须将其包装在OneVsRestClassifier中,例如:

 OneVsRestClassifier(LinearSVC())

最佳答案

根据this part of the documentation :

SVC, NuSVC and LinearSVC are classes capable of performing multi-class classification on a dataset.

[...]

On the other hand, LinearSVC implements “one-vs-the-rest” multi-class strategy, thus training n_class models. If there are only two classes, only one model is trained:

所以它默认支持多类分类。

关于machine-learning - Scikit 学习支持向量机的多类分类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29338872/

相关文章:

python - 如何在 clf.predict_proba(X_test) 中获得更多小数?

python-3.x - python 中的 SGD 分类器和 SGD 回归器有什么区别?

python - 迭代稀疏矩阵并连接每行的数据和索引

machine-learning - LS-SVM训练: Out of memory

machine-learning - 使用 LIBSVM 的多类

machine-learning - 从图像中提取主要/最常用的颜色

python - turicreate 未知类型的图像分类器

machine-learning - 在 Mahout 中结合 UserSimilarity 和 ItemSimilarity 进行推荐

python - 解释 DecisionTreeRegressor 分数?

csv - 如何在 scikit 中训练 svm 从 csv 文件中的训练数据中学习