【发布时间】:2015-06-28 16:40:35
【问题描述】:
当我在 Python 中使用以下命令对新数据进行分类时出现以下错误:
classifier.predict(new_data)
AttributeError: python 'SVC' object has no attribute _dual_coef_
不过,在我的笔记本电脑中,该命令运行良好!怎么了?
【问题讨论】:
-
你在两台电脑上使用的是同一个版本吗?
-
是的。这真的很奇怪,因为它是 scikit 学习工具包的基本功能
-
你能提供导致错误的输入吗?
标签: python scikit-learn classification svm