我尝试创建一个SVM Classifier,如:
# Create a SVM Classifier
model = SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,
decision_function_shape=None, degree=3, gamma='auto', kernel='linear',
max_iter=-1, probability=True, random_state=None, shrinking=True,
tol=0.001, verbose=False
)
(使用Python 2.7)
但是得到这个错误 -
TypeError:init()得到了一个意外的关键字参数'decision_function_shape'
对此有什么想法吗?如何整理?
更新>>
我的sklearn版本是0.16.1. 我试图安装更新,但它一直说 - No matching distribution found for the upgrade。