Skip to content
RED SAGSkills
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]
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions