Via #11570.
Both cross_val_score and cross_validate provide deprecation warnings when an error happens during the process, telling users to set error_score. But they don't expose error_score. We either need to expose error_score in these two functions or explicitly pass error_score='raise' to _fit_and_score.
I'm pretty agnostic which of the two we do. I guess it's less likely that some of the fold will error than that some parameter settings will error in GridSearchCV.
The text was updated successfully, but these errors were encountered:
same for learning_curve. we need to check if we use _fit_and_score in other places. Or maybe we should have not changed the default in _fit_and_score but in GridSearchCV instead.
Same for validation_curve as well.
There are two other occurences of _fit_and_score: in fit_grid_point and the fit method of BaseSearchCV, but errors_score is exposed in both functions.
Via #11570.
Both
cross_val_score
andcross_validate
provide deprecation warnings when an error happens during the process, telling users to seterror_score
. But they don't expose error_score. We either need to exposeerror_score
in these two functions or explicitly passerror_score='raise'
to_fit_and_score
.I'm pretty agnostic which of the two we do. I guess it's less likely that some of the fold will error than that some parameter settings will error in GridSearchCV.
The text was updated successfully, but these errors were encountered: