Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()))
Source by www.analyticsvidhya.com #
 
PREVIOUS NEXT
Tagged: #sklearn #cross #validation #score
ADD COMMENT
Topic
Name
2+9 =