它提供了一个缺省的评估法则来解决问题,简要的说,它用你训练好的模型在测试集上进行评分(0~1)1分代表最好 clf.fit(X_train,Y_train) print(clf.score(X_test,Y_test))