juaml / julearn

Forschungszentrum Jülich Machine Learning Library
https://juaml.github.io/julearn
GNU Affero General Public License v3.0
30 stars 19 forks source link

[ENH]: Warn when hyperparamater tuning is hapening and now explcit scoring is used for inner CV #253

Open fraimondo opened 8 months ago

fraimondo commented 8 months ago

Which feature do you want to include?

The default in scikit-learn's SearchCV is to use the learning algorithm's score function. E.g. SVM will use accuracy. This could be a problem if the data is imbalanced. It would be better to use balanced_accuracy.

To prevent this, ideally we should warn the user if: 1) Hyperparemeter tuning is happening 2) Scoring is implicit

Additionally, this should include an example

How do you imagine this integrated in julearn?

In the checks, if a SearchCV is used and the scoring is None

Do you have a sample code that implements this outside of julearn?

No response

Anything else to say?

No response