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 checker to target #120

Closed Ksyula closed 3 years ago

Ksyula commented 3 years ago

name: "Pull request" about: Make changes in scikit-uplift

📑 Description of the Change

check_is_binary checker function is added to: models/models.py metrics/metrics.py viz/base.py

Verification Process

Reinstall the package and run uplift_metrics_tutorial notebook

Release Notes

There is no option to fit datasets with a continuous target, only binary target values are allowed for now.

Additional info

maks-sh commented 3 years ago

Thank you for your contribution!

Please do not forget to make a submission on the ods.ai with a link to this PR.