
python
IT_ER
这个作者很懒,什么都没留下…
展开
-
Bug: TypeError: fit() missing 1 required positional argument: 'y'
In [1]: from sklearn import svmIn [2]: from sklearn import datasetsIn [3]: clf = svm.SVCIn [4]: iris = datasets.load_iris()In [5]: x, y = iris.data, iris.targetIn [6]: clf.fit(x,y)--------...原创 2018-09-07 22:09:59 · 2491 阅读 · 0 评论 -
Python3.6.6中内置的异常、错误与警告
BaseException +– SystemExit +– KeyboardInterrupt +– GeneratorExit +– Exception +– StopIteration +– StopAsyncIteration +– ArithmeticError | +– FloatingPointError ...转载 2018-09-05 21:29:49 · 700 阅读 · 0 评论