Skip to content

Commit 2c6dbe6

Browse files
committed
Merge branch 'realese/v0.4.0' into dev
2 parents 3b7410a + e93aeba commit 2c6dbe6

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

docs/changelog.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@
88
* 🔨 something that previously didn’t work as documented – or according to reasonable expectations – should now work.
99
* ❗️ you will need to change your code to have the same effect in the future; or a feature will be removed in the future.
1010

11+
## Version 0.4.0
12+
13+
### [sklift.metrics](https://www.uplift-modeling.com/en/v0.4.0/api/index/metrics.html)
14+
15+
* 🔥 Add [make_uplift_scorer](https://www.uplift-modeling.com/en/v0.4.0/api/metrics/make_uplift_scorer.html) function for interacting with the module ``sklearn.model_selection`` by [@wrapper228](https://github.com/wrapper228).
16+
* 🔥 Add new metric [average_squared_deviation](https://www.uplift-modeling.com/en/v0.4.0/api/metrics/average_squared_deviation.html) function by [@Mogby](https://github.com/Mogby).
17+
18+
### [sklift.viz](https://www.uplift-modeling.com/en/v0.4.0/api/viz/index.html)
19+
20+
* 🔥 Added the ability to draw multiple plot on the same graph of [plot_uplift_curve](https://www.uplift-modeling.com/en/v0.4.0/api/viz/plot_uplift_curve.html) function and [plot_qini_curve](https://www.uplift-modeling.com/en/v0.4.0/api/viz/plot_qini_curve.html) function by [@flashlight101](https://github.com/flashlight101).
21+
22+
### [sklift.datasets](https://www.uplift-modeling.com/en/v0.4.0/api/datasets/index.html)
23+
24+
* 💥 Add new dataset [fetch_megafon](https://www.uplift-modeling.com/en/v0.4.0/api/datasets/fetch_megafon.html) function by [@ezhdi](https://github.com/ezhdi).
25+
* 📝 Improve documentation of [sklift.datasets](https://www.uplift-modeling.com/en/v0.4.0/api/datasets/index.html) by [@flashlight101](https://github.com/flashlight101) and [@ezhdi](https://github.com/ezhdi).
26+
27+
28+
### Miscellaneous
29+
30+
* 💥 Add new tutorial [Example of usage model from sklift.models in sklearn.model_selection](https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/uplift_model_selection_tutorial.ipynb) by [@wrapper228](https://github.com/wrapper228).
31+
* 💥 Increased test coverage from 30% to 82% by [@flashlight101](https://github.com/flashlight101) and [@Ksyula](https://github.com/Ksyula)
32+
* 📝 Add EDA of available datasets on [Tutorials](https://www.uplift-modeling.com/en/v0.4.0/tutorials.html) page by [@lyutov89](https://github.com/lyutov89), [@ezhdi](https://github.com/ezhdi), [@patpanda94](https://github.com/patpanda94) and [@Ksyula](https://github.com/Ksyula).
33+
* 📝 Imporve ["RetailHero tutorial"](https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb) by [@Ksyula](https://github.com/Ksyula).
34+
1135
## Version 0.3.2
1236

1337
### [sklift.datasets](https://www.uplift-modeling.com/en/v0.3.2/api/datasets/index.html)

sklift/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.3.2'
1+
__version__ = '0.4.0'

sklift/models/models.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import warnings
21
import numpy as np
32
import pandas as pd
43
from sklearn.base import BaseEstimator
@@ -247,13 +246,6 @@ def fit(self, X, y, treatment, estimator_fit_params=None):
247246

248247
if self._type_of_target != 'binary':
249248
raise ValueError("This approach is only suitable for binary classification problem")
250-
_, treatment_counts = np.unique(treatment, return_counts=True)
251-
if treatment_counts[0] != treatment_counts[1]:
252-
warnings.warn(
253-
"It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.",
254-
category=UserWarning,
255-
stacklevel=2
256-
)
257249

258250
y_mod = (np.array(y) == np.array(treatment)).astype(int)
259251

0 commit comments

Comments
 (0)