Skip to content

Commit 7854df2

Browse files
committed
Merge branch 'release/v0.1.1'
2 parents 7e83f38 + 921923a commit 7854df2

File tree

15 files changed

+1252
-92
lines changed

15 files changed

+1252
-92
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fabric.properties
207207
# Android studio 3.1+ serialized cache file
208208
.idea/caches/build_file_checksums.ser
209209

210-
notebooks/RetailHero-data/*
210+
notebooks/content/*
211211
notebooks/catboost_info
212212
notebooks/*.tmp
213213

Readme.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
.. |Docs| image:: https://readthedocs.org/projects/scikit-uplift/badge/?version=latest
1212
.. _Docs: https://scikit-uplift.readthedocs.io/en/latest/
1313

14-
.. _RU: https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb
15-
.. _EN: https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb
16-
1714
.. |Open In Colab1| image:: https://colab.research.google.com/assets/colab-badge.svg
1815
.. _Open In Colab1: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb
1916

2017
.. |Open In Colab2| image:: https://colab.research.google.com/assets/colab-badge.svg
2118
.. _Open In Colab2: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb
22-
19+
20+
.. |Open In Colab3| image:: https://colab.research.google.com/assets/colab-badge.svg
21+
.. _Open In Colab3: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
22+
23+
.. |Open In Colab4| image:: https://colab.research.google.com/assets/colab-badge.svg
24+
.. _Open In Colab4: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb
25+
2326
.. _scikit-uplift.readthedocs.io: https://scikit-uplift.readthedocs.io/en/latest/
2427
.. _Part 1: https://habr.com/ru/company/ru_mts/blog/485980/
2528
.. _Part 2: https://habr.com/ru/company/ru_mts/blog/485976/
@@ -50,9 +53,13 @@ More about uplift modelling problem read in russian on habr.com: `Part 1`_ and `
5053

5154
* Applying any estimator adheres to scikit-learn conventions;
5255

56+
* All approaches can be used in sklearn.pipeline (see example (`EN <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`__ |Open In Colab3|_, `RU <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`__ |Open In Colab4|_))
57+
5358
* Almost all implemented approaches solve both the problem of classification and regression;
5459

55-
* A lot of metrics (Such as *Area Under Uplift Curve* or *Area Under Qini Curve*) are implemented to evaluate your uplift model.
60+
* A lot of metrics (Such as *Area Under Uplift Curve* or *Area Under Qini Curve*) are implemented to evaluate your uplift model;
61+
62+
* Useful graphs for analyzing the built model.
5663

5764
Installation
5865
-------------
@@ -89,7 +96,7 @@ And if you now point your browser to ``_build/html/index.html``, you should see
8996
Quick Start
9097
-----------
9198

92-
See the **RetailHero tutorial notebook** (`EN`_ |Open In Colab1|_, `RU`_ |Open In Colab2|_) for details.
99+
See the **RetailHero tutorial notebook** (`EN <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`__ |Open In Colab1|_, `RU <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`__ |Open In Colab2|_) for details.
93100

94101
**Train and predict uplift model**
95102

@@ -157,7 +164,7 @@ Important links
157164
158165
- Official source code repo: https://github.com/maks-sh/scikit-uplift/
159166
- Issue tracker: https://github.com/maks-sh/scikit-uplift/issues
160-
167+
- Release History: https://scikit-uplift.readthedocs.io/en/latest/changelog.html
161168
162169
===============
163170

docs/changelog.md

Lines changed: 19 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.1.1
12+
13+
### [sklift.viz](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html)
14+
15+
* 💥 Add [plot_uplift_by_percentile](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html#sklift.viz.base.plot_uplift_by_percentile) by [@ElisovaIra](https://github.com/ElisovaIra).
16+
* 🔨 Fix bug with import [plot_treatment_balance_curve](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html#sklift.viz.base.plot_treatment_balance_curve).
17+
18+
### [sklift.metrics](https://scikit-uplift.readthedocs.io/en/latest/api/metrics.html)
19+
20+
* 💥 Add [response_rate_by_percentile](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html#sklift.metrics.metrics.response_rate_by_percentile) by [@ElisovaIra](https://github.com/ElisovaIra).
21+
* 🔨 Fix bug with import [uplift_auc_score](https://scikit-uplift.readthedocs.io/en/latest/api/metrics.html#sklift.metrics.metrics.uplift_auc_score) and [qini_auc_score](https://scikit-uplift.readthedocs.io/en/latest/metrics.html#sklift.metrics.metrics.qini_auc_score).
22+
* 📝 Fix typos in docstrings.
23+
24+
### Miscellaneous
25+
26+
* 💥 Add tutorial ["Example of usage model from sklift.models in sklearn.pipeline"](https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb).
27+
* 📝 Add link to Release History in main Readme.md.
28+
1129
## Version 0.1.0
1230

1331
### [sklift.models](https://scikit-uplift.readthedocs.io/en/latest/api/models.html)
@@ -19,6 +37,7 @@
1937

2038
* 💥 Add [treatment_balance_curve](https://scikit-uplift.readthedocs.io/en/latest/api/metrics.html#sklift.metrics.metrics.treatment_balance_curve) by [@spiaz](https://github.com/spiaz).
2139
* ❗️ The metrics `auuc` and `auqc` are now respectively renamed to [uplift_auc_score](https://scikit-uplift.readthedocs.io/en/latest/api/metrics.html#sklift.metrics.metrics.uplift_auc_score) and [qini_auc_score](https://scikit-uplift.readthedocs.io/en/latest/metrics.html#sklift.metrics.metrics.qini_auc_score). So, `auuc` and `auqc` will be removed in 0.2.0.
40+
* ❗️ Add a new parameter `startegy` in [uplift_at_k](https://scikit-uplift.readthedocs.io/en/latest/metrics.html#sklift.metrics.metrics.uplift_at_k).
2241

2342
### [sklift.viz](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html)
2443

docs/index.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
.. _Part 1: https://habr.com/ru/company/ru_mts/blog/485980/
22
.. _Part 2: https://habr.com/ru/company/ru_mts/blog/485976/
33

4+
.. |Open In Colab3| image:: https://colab.research.google.com/assets/colab-badge.svg
5+
.. _Open In Colab3: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
6+
7+
.. |Open In Colab4| image:: https://colab.research.google.com/assets/colab-badge.svg
8+
.. _Open In Colab4: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb
9+
410
**************
511
scikit-uplift
612
**************
@@ -18,9 +24,13 @@ Features
1824

1925
* Applying any estimator adheres to scikit-learn conventions;
2026

27+
* All approaches can be used in sklearn.pipeline (see example (`EN <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`_ |Open In Colab3|_, `RU <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`_ |Open In Colab4|_))
28+
2129
* Almost all implemented approaches solve both the problem of classification and regression;
2230

23-
* A lot of metrics (Such as *Area Under Uplift Curve* or *Area Under Qini Curve*) are implemented to evaluate your uplift model.
31+
* A lot of metrics (Such as *Area Under Uplift Curve* or *Area Under Qini Curve*) are implemented to evaluate your uplift model;
32+
33+
* Useful graphs for analyzing the built model.
2434

2535

2636
**The package currently supports the following methods:**

docs/tutorials.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
.. |Open In Colab2| image:: https://colab.research.google.com/assets/colab-badge.svg
55
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb
66

7+
.. _Example of usage model from sklift.models in sklearn.pipeline: https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
8+
.. |Open In Colab3| image:: https://colab.research.google.com/assets/colab-badge.svg
9+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
10+
.. |Open In Colab4| image:: https://colab.research.google.com/assets/colab-badge.svg
11+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb
712

813
**********
914
Tutorials
@@ -12,10 +17,12 @@ Tutorials
1217
Basic
1318
########
1419

15-
It is better to start scikit-uplift from the basic tutorial.
20+
It is better to start scikit-uplift from the basic tutorials.
1621

1722
* `The overview of the basic approaches to solving the Uplift Modeling problem`_
18-
* In Englsih: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`_ |Open In Colab1|
19-
* In Russian: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`_ |Open In Colab2|
20-
23+
* In English: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`__ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`__ |Open In Colab1|
24+
* In Russian: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`__ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`__ |Open In Colab2|
2125

26+
* `Example of usage model from sklift.models in sklearn.pipeline`_
27+
* In English: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`__ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`__ |Open In Colab3|
28+
* In Russian: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`__ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`__ |Open In Colab4|

notebooks/Readme.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. _The overview of the basic approaches to solving the Uplift Modeling problem: https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb
2+
.. |Open In Colab1| image:: https://colab.research.google.com/assets/colab-badge.svg
3+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb
4+
.. |Open In Colab2| image:: https://colab.research.google.com/assets/colab-badge.svg
5+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb
6+
7+
.. _Example of usage model from sklift.models in sklearn.pipeline: https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
8+
.. |Open In Colab3| image:: https://colab.research.google.com/assets/colab-badge.svg
9+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb
10+
.. |Open In Colab4| image:: https://colab.research.google.com/assets/colab-badge.svg
11+
:target: https://colab.research.google.com/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb
12+
13+
**********
14+
Tutorials
15+
**********
16+
17+
Basic
18+
########
19+
20+
It is better to start scikit-uplift from the basic tutorials.
21+
22+
* `The overview of the basic approaches to solving the Uplift Modeling problem`_
23+
* In English: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero_EN.ipynb>`_ |Open In Colab1|
24+
* In Russian: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/RetailHero.ipynb>`_ |Open In Colab2|
25+
26+
* `Example of usage model from sklift.models in sklearn.pipeline`_
27+
* In English: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_EN.ipynb>`_ |Open In Colab3|
28+
* In Russian: `nbviewer <https://nbviewer.jupyter.org/github/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`_ | `github <https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/pipeline_usage_RU.ipynb>`_ |Open In Colab4|

notebooks/RetailHero.ipynb

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
"execution_count": 1,
108108
"metadata": {
109109
"ExecuteTime": {
110-
"end_time": "2020-04-16T20:41:07.634319Z",
111-
"start_time": "2020-04-16T20:41:07.630711Z"
110+
"end_time": "2020-04-28T09:24:37.492036Z",
111+
"start_time": "2020-04-28T09:24:37.488584Z"
112112
},
113113
"colab": {
114114
"base_uri": "https://localhost:8080/",
@@ -126,7 +126,7 @@
126126
"urllib.request.urlretrieve(url, '/content/retail_hero.zip')\n",
127127
"\n",
128128
"!unzip /content/retail_hero.zip\n",
129-
"!pip install scikit-uplift==0.1.0 catboost=0.22"
129+
"!pip install scikit-uplift==0.1.1 catboost=0.22"
130130
]
131131
},
132132
{
@@ -144,8 +144,8 @@
144144
"execution_count": 2,
145145
"metadata": {
146146
"ExecuteTime": {
147-
"end_time": "2020-04-16T20:41:10.715080Z",
148-
"start_time": "2020-04-16T20:41:07.644388Z"
147+
"end_time": "2020-04-28T09:24:40.783897Z",
148+
"start_time": "2020-04-28T09:24:37.503470Z"
149149
},
150150
"colab": {},
151151
"colab_type": "code",
@@ -196,8 +196,8 @@
196196
"execution_count": 3,
197197
"metadata": {
198198
"ExecuteTime": {
199-
"end_time": "2020-04-16T20:41:11.873021Z",
200-
"start_time": "2020-04-16T20:41:10.717336Z"
199+
"end_time": "2020-04-28T09:24:42.100096Z",
200+
"start_time": "2020-04-28T09:24:40.786498Z"
201201
},
202202
"colab": {},
203203
"colab_type": "code",
@@ -251,8 +251,8 @@
251251
"execution_count": 4,
252252
"metadata": {
253253
"ExecuteTime": {
254-
"end_time": "2020-04-16T20:41:14.061983Z",
255-
"start_time": "2020-04-16T20:41:11.875565Z"
254+
"end_time": "2020-04-28T09:24:44.483576Z",
255+
"start_time": "2020-04-28T09:24:42.102707Z"
256256
},
257257
"colab": {
258258
"base_uri": "https://localhost:8080/",
@@ -313,8 +313,8 @@
313313
"execution_count": 5,
314314
"metadata": {
315315
"ExecuteTime": {
316-
"end_time": "2020-04-16T20:41:14.084652Z",
317-
"start_time": "2020-04-16T20:41:14.064998Z"
316+
"end_time": "2020-04-28T09:24:44.511016Z",
317+
"start_time": "2020-04-28T09:24:44.486035Z"
318318
},
319319
"colab": {
320320
"base_uri": "https://localhost:8080/",
@@ -484,8 +484,8 @@
484484
"execution_count": 6,
485485
"metadata": {
486486
"ExecuteTime": {
487-
"end_time": "2020-04-16T20:41:15.254843Z",
488-
"start_time": "2020-04-16T20:41:14.087893Z"
487+
"end_time": "2020-04-28T09:24:45.715602Z",
488+
"start_time": "2020-04-28T09:24:44.514353Z"
489489
},
490490
"colab": {
491491
"base_uri": "https://localhost:8080/",
@@ -545,8 +545,8 @@
545545
"execution_count": 7,
546546
"metadata": {
547547
"ExecuteTime": {
548-
"end_time": "2020-04-16T20:41:17.230517Z",
549-
"start_time": "2020-04-16T20:41:15.257156Z"
548+
"end_time": "2020-04-28T09:24:47.941480Z",
549+
"start_time": "2020-04-28T09:24:45.719641Z"
550550
},
551551
"colab": {
552552
"base_uri": "https://localhost:8080/",
@@ -632,8 +632,8 @@
632632
"execution_count": 8,
633633
"metadata": {
634634
"ExecuteTime": {
635-
"end_time": "2020-04-16T20:41:19.361999Z",
636-
"start_time": "2020-04-16T20:41:17.233889Z"
635+
"end_time": "2020-04-28T09:24:50.571779Z",
636+
"start_time": "2020-04-28T09:24:47.944822Z"
637637
},
638638
"colab": {
639639
"base_uri": "https://localhost:8080/",
@@ -694,8 +694,8 @@
694694
"execution_count": 9,
695695
"metadata": {
696696
"ExecuteTime": {
697-
"end_time": "2020-04-16T20:41:21.519463Z",
698-
"start_time": "2020-04-16T20:41:19.366080Z"
697+
"end_time": "2020-04-28T09:24:52.942803Z",
698+
"start_time": "2020-04-28T09:24:50.576741Z"
699699
},
700700
"colab": {
701701
"base_uri": "https://localhost:8080/",
@@ -758,8 +758,8 @@
758758
"execution_count": 10,
759759
"metadata": {
760760
"ExecuteTime": {
761-
"end_time": "2020-04-16T20:41:21.536036Z",
762-
"start_time": "2020-04-16T20:41:21.522709Z"
761+
"end_time": "2020-04-28T09:24:52.964396Z",
762+
"start_time": "2020-04-28T09:24:52.945544Z"
763763
},
764764
"colab": {
765765
"base_uri": "https://localhost:8080/",
@@ -858,8 +858,8 @@
858858
"execution_count": 11,
859859
"metadata": {
860860
"ExecuteTime": {
861-
"end_time": "2020-04-16T20:41:24.150095Z",
862-
"start_time": "2020-04-16T20:41:21.539068Z"
861+
"end_time": "2020-04-28T09:24:56.505700Z",
862+
"start_time": "2020-04-28T09:24:53.019392Z"
863863
},
864864
"colab": {
865865
"base_uri": "https://localhost:8080/",
@@ -906,8 +906,8 @@
906906
"execution_count": 12,
907907
"metadata": {
908908
"ExecuteTime": {
909-
"end_time": "2020-04-16T20:41:24.171639Z",
910-
"start_time": "2020-04-16T20:41:24.153353Z"
909+
"end_time": "2020-04-28T09:24:56.560018Z",
910+
"start_time": "2020-04-28T09:24:56.508541Z"
911911
},
912912
"colab": {
913913
"base_uri": "https://localhost:8080/",

0 commit comments

Comments
 (0)