Skip to content

Commit ce5a30f

Browse files
committed
Merge branch 'dev' into feature/add_test_models
2 parents 7b6c589 + 99f9b70 commit ce5a30f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/changelog.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,23 @@
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.2
12+
_in development_
13+
14+
### [sklift.models](https://scikit-uplift.readthedocs.io/en/latest/api/models.html)
15+
16+
* 🔨 Fix bug in [TwoModels](https://scikit-uplift.readthedocs.io/en/latest/api/models.html#sklift.models.models.TwoModels) (ddr_control) in regression models.
17+
* 📝 Minor code refactoring.
18+
19+
### [sklift.metrics](https://scikit-uplift.readthedocs.io/en/latest/api/metrics.html)
20+
21+
* 📝 Minor code refactoring.
22+
23+
### [sklift.viz](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html)
24+
25+
* 🔨 Fix bug in [plot_uplift_by_percentile](https://scikit-uplift.readthedocs.io/en/latest/api/viz.html#sklift.viz.base.plot_uplift_by_percentile).
26+
* 📝 Minor code refactoring.
27+
1128
## Version 0.1.1
1229

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

sklift/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def fit(self, X, y, treatment, estimator_trmnt_fit_params=None, estimator_ctrl_f
335335
if self._type_of_target == 'binary':
336336
ddr_control = self.estimator_ctrl.predict_proba(X_trmnt)[:, 1]
337337
else:
338-
ddr_control = self.estimator_ctrl.predict_(X_trmnt)
338+
ddr_control = self.estimator_ctrl.predict(X_trmnt)
339339

340340
if isinstance(X_trmnt, np.ndarray):
341341
X_trmnt_mod = np.column_stack((X_trmnt, ddr_control))

0 commit comments

Comments
 (0)