Skip to content

Commit 7167303

Browse files
linted
1 parent e283715 commit 7167303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

causalml/propensity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def calibrate(ps, treatment):
191191
(numpy.array): a calibrated propensity score vector
192192
"""
193193

194-
two_eps = 2.0*np.finfo(float).eps
195-
pm_ir = IsotonicRegression(out_of_bounds="clip", y_min=two_eps, y_max=1.0-two_eps)
194+
two_eps = 2.0 * np.finfo(float).eps
195+
pm_ir = IsotonicRegression(out_of_bounds="clip", y_min=two_eps, y_max=1.0 - two_eps)
196196
ps_ir = pm_ir.fit_transform(ps, treatment)
197197

198198
return ps_ir

0 commit comments

Comments
 (0)