当我使用该轮时,它应该得到相同的结果,第一个代码似乎未能绕过它?为什么呢?
clf = classify(features_train, labels_train)
acc = accuracy_score(clf.predict(features_test), labels_test)
def submitAccuracies():
return {"acc": round(acc, 3)}
print(submitAccuracies())
print("acc: ", round(acc, 3))
MyOutput中:
{'acc': 0.91200000000000003}
acc: 0.912