maks-sh / scikit-uplift

:exclamation: uplift modeling in scikit-learn style in python :snake:
https://www.uplift-modeling.com
MIT License
725 stars 96 forks source link

Add get_scorer #137

Closed wrapper228 closed 3 years ago

wrapper228 commented 3 years ago

💡 Feature request

Add get_scorer() function which can be passed to cross-validation pipelines.

Motivation

Sklift lacks of ability to pass uplift metrics to model selection functions such as cross_validate and GridSearchCV. This function creates this ability by creating sklearn.metrics.make_scorer() object which can be passed in the standard manner.

Additional context

Tutorial notebook "uplift_model_selection_tutorial.ipynb" included.