A regression search reports excellent R², but the product cares about absolute currency error. What search setting…
Classic MLLevel: IntermediateDefault optimization mismatch
A regression search reports excellent R², but the product cares about absolute currency error. What search setting should change?
Hints
- Defaults come from the estimator.
- The search selects what the scorer rewards.
Answer
Set scoring to an appropriate error scorer, such as neg_mean_absolute_error. The estimator's default score may optimize a different objective from the operational one.
Source and licence: scikit-learn 1.7.2 — grid search · BSD-3-Clause · answer: Quantoros editorial