import cross_val_scorefrom sklearn.datasets import load_iris scores = cross_val_score(clf, iris.data, iris.target)