Basic cross validation:
from sklearn.model_selection import cross_val_score from sklearn import datasets X, y = datasets.load_iris(return_X_y=True) clf = svm.SVC