Default scoring metric for cross_validate (regression)

Hi - can someone please tell me what is the default scoring metric here?

cv_results = cross_validate(regressor, data, target, return_estimator=True)

The documentation is not very clear for this…

Thanks

When it is a regressor, it will be the R2 score. If providing a classifier, it will be the accuracy.

2 Likes