Skip to content

Commit fd0a576

Browse files
committed
Merge branch 'feature/fix_docs' into dev
2 parents e5ca419 + 40cc796 commit fd0a576

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

docs/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_version():
3333
# -- Project information -----------------------------------------------------
3434

3535
project = 'scikit-uplift'
36-
author = 'Maksim Shevchenko'
36+
author = 'Maksim Shevchenko and Contributors'
3737
copyright = "{}, {}".format(datetime.datetime.now().year, author)
3838

3939
# The full version, including alpha/beta/rc tags
@@ -46,8 +46,11 @@ def get_version():
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4747
# ones.
4848
extensions = [
49-
"sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.mathjax", "sphinx.ext.napoleon",
50-
"recommonmark"
49+
"sphinx.ext.autodoc",
50+
"sphinx.ext.viewcode",
51+
"sphinx.ext.mathjax",
52+
"sphinx.ext.napoleon",
53+
"recommonmark",
5154
]
5255

5356
master_doc = 'index'
@@ -58,7 +61,7 @@ def get_version():
5861
# List of patterns, relative to source directory, that match files and
5962
# directories to ignore when looking for source files.
6063
# This pattern also affects html_static_path and html_extra_path.
61-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
64+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'Readme.rst']
6265

6366

6467
# -- Options for HTML output -------------------------------------------------

sklift/metrics/metrics.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,9 @@ def uplift_at_k(y_true, uplift, treatment, strategy, k=0.3):
207207
The first step is taking the first k observations of all test data ordered by uplift prediction
208208
(overall both groups - control and treatment) and conversions in treatment and control groups
209209
calculated only on them. Then the difference between these conversions is calculated.
210-
211210
* ``'by_group'``:
212211
Separately calculates conversions in top k observations in each group (control and treatment)
213-
sorted by uplift predictions. Then the difference between these conversions is calculated
212+
sorted by uplift predictions. Then the difference between these conversions is calculated.
214213
215214
.. versionchanged:: 0.1.0
216215
@@ -298,7 +297,6 @@ def response_rate_by_percentile(y_true, uplift, treatment, group, strategy, bins
298297
299298
* ``'treatment'``:
300299
Values equal 1 in the treatment column.
301-
302300
* ``'control'``:
303301
Values equal 0 in the treatment column.
304302
@@ -308,7 +306,6 @@ def response_rate_by_percentile(y_true, uplift, treatment, group, strategy, bins
308306
The first step is taking the first k observations of all test data ordered by uplift prediction
309307
(overall both groups - control and treatment) and conversions in treatment and control groups
310308
calculated only on them. Then the difference between these conversions is calculated.
311-
312309
* ``'by_group'``:
313310
Separately calculates conversions in top k observations in each group (control and treatment)
314311
sorted by uplift predictions. Then the difference between these conversions is calculated.

sklift/models/models.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,14 @@ class TwoModels(BaseEstimator):
222222
Args:
223223
estimator_trmnt (estimator object implementing 'fit'): The object to use to fit the treatment data.
224224
estimator_ctrl (estimator object implementing 'fit'): The object to use to fit the control data.
225-
method (string, ‘vanilla’, ’ddr_control’ or ‘ddr_treatment’, default='vanilla'): Specifies the approach:
226-
* ‘vanilla’ - two independent models
227-
* ’ddr_control’ - dependent data representation (First train control estimator)
228-
* ’ddr_treatment’ - dependent data representation (First train treatment estimator)
225+
method (string, 'vanilla', 'ddr_control' or 'ddr_treatment', default='vanilla'): Specifies the approach:
226+
227+
* ``'vanilla'``:
228+
Two independent models;
229+
* ``'ddr_control'``:
230+
Dependent data representation (First train control estimator).
231+
* ``'ddr_treatment'``:
232+
Dependent data representation (First train treatment estimator).
229233
230234
Attributes:
231235
trmnt_preds_ (array-like, shape (n_samples, )): Estimator predictions on samples when treatment.

sklift/viz/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def plot_uplift_by_percentile(y_true, uplift, treatment, strategy, kind='line',
129129
The first step is taking the first k observations of all test data ordered by uplift prediction
130130
(overall both groups - control and treatment) and conversions in treatment and control groups
131131
calculated only on them. Then the difference between these conversions is calculated.
132-
133132
* ``'by_group'``:
134133
Separately calculates conversions in top k observations in each group (control and treatment)
135134
sorted by uplift predictions. Then the difference between these conversions is calculated.
@@ -138,7 +137,6 @@ def plot_uplift_by_percentile(y_true, uplift, treatment, strategy, kind='line',
138137
139138
* ``'line'``:
140139
Generates a line plot.
141-
142140
* ``'bar'``:
143141
Generates a traditional bar-style plot.
144142

0 commit comments

Comments
 (0)