我因为使用sklearn.svm.SVC
(版本0.16.1)而收到此警告
logger.info('the shape of tf_feature is : (%d, %d)',
features.tf_feature.shape[0],features.tf_feature.shape[1])
## output: the shape of tf_feature is : (11269, 53975)
svc = svm.SVC(C = 0.05)
## tf_feature is a sparse csr matrix
svc.fit(features.tf_feature, features.label) # getting warning here
全面警告是
sr/lib/python3/dist-packages/scipy/sparse/compressed.py:119: UserWarning: indptr array has non-integer dtype (float64) % self.indptr.dtype.name)
。你知道吗
奇怪的是,如果我用svm.LinearSVC
替换svm.SVC
,它会变得完全好。有人知道svm.SVC
是怎么回事吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐