medium10 pts · first answer countsmodel-evaluationscikit-learncross-validation
Negative scores from cross_val_score
Why does this print negative numbers?
scores = cross_val_score(reg, X, y, cv=5, scoring='neg_mean_squared_error') print(scores) # e.g. [-412.3 -398.1 -455.0 -401.7 -420.9]
Discussion 0
Join free to post in the discussion.
Related questions
- Big gap between train and validation accuracyMachine Learning Engineer
- Why keep a separate test setMachine Learning Engineer
- Spot the bug in training codeMachine Learning Engineer
- How KNNImputer fills a gapMachine Learning Engineer
- How often a row is validated in k-foldMachine Learning Engineer
- Why stratify the foldsMachine Learning Engineer
- Specificity by handMachine Learning Engineer
- The x-axis of an ROC curveMachine Learning Engineer