Data Science, Machine Learning, Artificial Intelligence, Technology, Data.
each model are printed, along with training and prediction times. results = [] names = [] for name, model in models: start = time() kfold = KFold(n_splits=10, random_state=7, shuffle=True) cv_results = cross_val_score(model, X_train, y_train, cv=kfold, scoring='accuracy') results.append(cv_results)