Skip to content

Commit 4fc5ee8

Browse files
committed
✨ Fix docsting in uplift_at_k, response_rate_by_percentile
1 parent b10ff87 commit 4fc5ee8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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.

0 commit comments

Comments
 (0)