Skip to content

Commit e9de7ab

Browse files
committed
Merge branch 'release/v0.3.2'
2 parents 412b490 + ee55b38 commit e9de7ab

File tree

11 files changed

+33
-13
lines changed

11 files changed

+33
-13
lines changed

Readme.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ Uplift modeling estimates a causal effect of treatment and uses it to effectivel
5050

5151
Read more about uplift modeling problem in `User Guide <https://www.uplift-modeling.com/en/latest/user_guide/index.html>`__.
5252

53-
Articles in russian on habr.com: `Part 1 <https://habr.com/ru/company/ru_mts/blog/485980/>`__
54-
and `Part 2 <https://habr.com/ru/company/ru_mts/blog/485976/>`__.
53+
Articles in russian on habr.com: `Part 1 <https://habr.com/ru/company/ru_mts/blog/485980/>`__ ,
54+
`Part 2 <https://habr.com/ru/company/ru_mts/blog/485976/>`__
55+
and `Part 3 <https://habr.com/ru/company/ru_mts/blog/538934/>`__.
5556

5657
**Features**:
5758

-151 KB
Binary file not shown.
-150 KB
Binary file not shown.

docs/changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88
* 🔨 something that previously didn’t work as documentated – 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.3.2
12+
13+
### [sklift.datasets](https://www.uplift-modeling.com/en/v0.3.1/api/datasets/index.html)
14+
15+
* 🔨 Fix bug in [fetch_x5](https://www.uplift-modeling.com/en/v0.3.1/api/datasets/fetch_x5.html) function by [@Muhamob](https://github.com/Muhamob).
16+
17+
### [sklift.metrics](https://www.uplift-modeling.com/en/v0.3.1/api/index/metrics.html)
18+
19+
* 📝 Fix docstring in [uplift_by_percentile](https://www.uplift-modeling.com/en/v0.3.1/api/metrics/uplift_by_percentile.html) function by [@ElisovaIra](https://github.com/ElisovaIra).
20+
21+
### [sklift.viz](https://www.uplift-modeling.com/en/v0.3.1/api/viz/index.html)
22+
23+
* 🔨 Fix bug in [plot_uplift_preds](https://www.uplift-modeling.com/en/v0.3.1/api/viz/plot_uplift_preds.html) function by [@bwbelljr](https://github.com/bwbelljr).
24+
25+
### Miscellaneous
26+
27+
* 📝 Change some images in ["RetailHero tutorial"](https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb).
28+
1129
## Version 0.3.1
1230

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

docs/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ The main idea is to provide easy-to-use and fast python package for uplift model
2424

2525
Read more about *uplift modeling* problem in `User Guide <https://www.uplift-modeling.com/en/latest/user_guide/index.html>`__,
2626

27-
Articles in russian on habr.com: `Part 1 <https://habr.com/ru/company/ru_mts/blog/485980/>`__
28-
and `Part 2 <https://habr.com/ru/company/ru_mts/blog/485976/>`__.
27+
Articles in russian on habr.com: `Part 1 <https://habr.com/ru/company/ru_mts/blog/485980/>`__ ,
28+
`Part 2 <https://habr.com/ru/company/ru_mts/blog/485976/>`__
29+
and `Part 3 <https://habr.com/ru/company/ru_mts/blog/538934/>`__.
2930

3031
Features
3132
#########

notebooks/RetailHero.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
" <b><a href=\"https://scikit-uplift.readthedocs.io/en/latest/\">SCIKIT-UPLIFT DOCS</a> | </b>\n",
2020
" <b><a href=\"https://scikit-uplift.readthedocs.io/en/latest/user_guide/index.html\">USER GUIDE</a></b>\n",
2121
" <br>\n",
22-
" <b><a href=\"https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb\">ENGLISH VERSION</a>\n",
22+
" <b><a href=\"https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb\">ENGLISH VERSION</a></b>\n",
2323
" <br>\n",
2424
" <b><a href=\"https://habr.com/ru/company/ru_mts/blog/485980/\">СТАТЬЯ НА HABR ЧАСТЬ 1</a> | </b>\n",
25-
" <b><a href=\"https://habr.com/ru/company/ru_mts/blog/485976/\">СТАТЬЯ НА HABR ЧАСТЬ 2</a></b>\n",
25+
" <b><a href=\"https://habr.com/ru/company/ru_mts/blog/485976/\">СТАТЬЯ НА HABR ЧАСТЬ 2</a> | </b>\n",
26+
" <b><a href=\"https://habr.com/ru/company/ru_mts/blog/538934/\">СТАТЬЯ НА HABR ЧАСТЬ 3</a></b>\n",
2627
"\n",
2728
"</center>"
2829
]
@@ -61,10 +62,10 @@
6162
"Исторически, по воздействию коммуникации маркетологи разделяют всех клиентов на 4 категории:\n",
6263
"\n",
6364
"<p align=\"center\">\n",
64-
" <img src=\"https://raw.githubusercontent.com/maks-sh/scikit-uplift/master/docs/_static/images/client_types_RU.png\" alt=\"Категории клиентов\"/>\n",
65+
" <img src=\"https://habrastorage.org/webt/mb/ed/iw/mbediw3l1dh76tk6_0-zgaxz-ss.jpeg\" width='40%' alt=\"Категории клиентов\"/>\n",
6566
"</p>\n",
6667
"\n",
67-
"1. **`Спящая собака`** - человек, который будет реагировать негативно, если с ним прокоммуницировать. Яркий пример: клиенты, которые забыли про платную подписку. Получив напоминание об этом, они обязательно ее отключат. Но если их не трогать, то клиенты по-прежнему будут приносить деньги. В терминах математики: $W_i = 1, Y_i = 0$ или $W_i = 0, Y_i = 1$.\n",
68+
"1. **`Не беспокоить`** - человек, который будет реагировать негативно, если с ним прокоммуницировать. Яркий пример: клиенты, которые забыли про платную подписку. Получив напоминание об этом, они обязательно ее отключат. Но если их не трогать, то клиенты по-прежнему будут приносить деньги. В терминах математики: $W_i = 1, Y_i = 0$ или $W_i = 0, Y_i = 1$.\n",
6869
"2. **`Потерянный`** - человек, который не совершит целевое действие независимо от коммуникаций. Взаимодействие с такими клиентами не приносит дополнительного дохода, но создает дополнительные затраты. В терминах математики: $W_i = 1, Y_i = 0$ или $W_i = 0, Y_i = 0$.\n",
6970
"3. **`Лояльный`** - человек, который будет реагировать положительно, несмотря ни на что - самый лояльный вид клиентов. По аналогии с предыдущим пунктом, такие клиенты также расходуют ресурсы. Однако в данном случае расходы гораздо больше, так как **лояльные** еще и пользуются маркетинговым предложением (скидками, купонами и другое). В терминах математики: $W_i = 1, Y_i = 1$ или $W_i = 0, Y_i = 1$.\n",
7071
"4. **`Убеждаемый`** - это человек, который положительно реагирует на предложение, но при его отсутствии не выполнил бы целевого действия. Это те люди, которых мы хотели бы определить нашей моделью, чтобы с ними прокоммуницировать. В терминах математики: $W_i = 0, Y_i = 0$ или $W_i = 1, Y_i = 1$.\n",

notebooks/RetailHero_EN.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"Historically, according to the impact of communication, marketers divide all customers into 4 categories:\n",
5454
"\n",
5555
"<p align=\"center\">\n",
56-
" <img src=\"https://raw.githubusercontent.com/maks-sh/scikit-uplift/master/docs/_static/images/client_types.png\" alt=\"Customer types\"/>\n",
56+
" <img src=\"https://raw.githubusercontent.com/maks-sh/scikit-uplift/master/docs/_static/images/user_guide/ug_clients_types.jpg\" alt=\"Customer types\" width='40%'/>\n",
5757
"</p>\n",
5858
"\n",
5959
"- **`Do-Not-Disturbs`** *(a.k.a. Sleeping-dogs)* have a strong negative response to a marketing communication. They are going to purchase if *NOT* treated and will *NOT* purchase *IF* treated. It is not only a wasted marketing budget but also a negative impact. For instance, customers targeted could result in rejecting current products or services. In terms of math: $W_i = 1, Y_i = 0$ or $W_i = 0, Y_i = 1$.\n",

sklift/__init__.py

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

sklift/datasets/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def fetch_x5(data_home=None, dest_subdir=None, download_if_missing=True):
228228
dest_filename=file_clients,
229229
download_if_missing=download_if_missing)
230230
clients = pd.read_csv(csv_clients_path)
231-
clients_features = list(clients.column)
231+
clients_features = list(clients.columns)
232232

233233
url_purchases = 'https://timds.s3.eu-central-1.amazonaws.com/purchases.csv.gz'
234234
file_purchases = url_purchases.split('/')[-1]

sklift/metrics/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def uplift_by_percentile(y_true, uplift, treatment, strategy='overall',
569569
std (bool): If True, add columns with the uplift standard deviation and the response rate standard deviation.
570570
Default is False.
571571
total (bool): If True, add the last row with the total values. Default is False.
572-
The total uplift is a weighted average uplift. See :func:`.weighted_average_uplift`.
572+
The total uplift computes as a total response rate treatment - a total response rate control.
573573
The total response rate is a response rate on the full data amount.
574574
bins (int): Determines the number of bins (and the relative percentile) in the data. Default is 10.
575575
string_percentiles (bool): type of percentiles in the index: float or string. Default is True (string).

0 commit comments

Comments
 (0)