ModuleNotFoundError: No module named 'sklearn.cross_validation'
Substitute cross_validation to model_selection
ModuleNotFoundError: No module named 'sklearn.cross_validation'
Substitute cross_validation to model_selection
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()))
ModuleNotFoundError: No module named 'sklearn.cross_validation'
ImportError: No module named sklearn.cross_validation
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us