cross_val_score
from sklearn.model_selection import cross_val_score
scores = cross_val_score(model, X_train, y_train, scoring='accuracy')
scores = cross_val_score(model, X_train, y_train, cv=30)
LOOCV(Leave-One-Out Cross-Validation)
from sklearn.model_selection import LeaveOneOut
scores = cross_val_score(model, X_train, y_train, cv=LeaveOneOut())
scores.mean()
Shuffle-Split Cross-Validation
from sklearn.model_selection import ShuffleSplit
sscv = ShuffleSplit(test_size=.5, train_size=.4, n_splits=10)
scores = cross_val_score(model, X_train, y_train, cv=sscv)
scores.mean()
scores