What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-08 18:39:15
cross validation error
Cross-validation is a resampling procedure used to evaluate machine learning models on a limited data sample. The procedure has a single parameter called k that refers to the number of groups that a given data sample is to be split into. As such, the proc... Add solution -
Other 2021-09-03 18:42:01
cross validation
Cross-validation is a resampling procedure used to evaluate machine learning models on a limited data sample. The procedure has a single parameter called k that refers to the number of groups that a given data sample is to be split into. As such, the proc... Add solution -
Other 2021-08-30 04:02:02
sklearn cross validation score
from sklearn.model_selection import cross_val_score scores = cross_val_score(classifier_logreg, X_train, y_train, cv = 5, scoring='accuracy') print('Cross-validation scores:{}'.format(scores)) print('Average cross-validation score: {}'.format(scores.mean())) Add solution