标签: machine-learning scikit-learn
The last line is giving me error.I am trying to solve the Titanic dataset problem of kraggle.
答案 0 :(得分:0)
错误在上面。你忘了关上那里的括号。
改变这个:
print(clf.predict(x_test[1:10])
到
print(clf.predict(x_test[1:10]))
即便如此,你也会收到错误:
clf.f1_score(...)
上面这行错了,应该是:
f1_score(y_test, clf.predict(x_test))