We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e283715 commit 7167303Copy full SHA for 7167303
causalml/propensity.py
@@ -191,8 +191,8 @@ def calibrate(ps, treatment):
191
(numpy.array): a calibrated propensity score vector
192
"""
193
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)
+ two_eps = 2.0 * np.finfo(float).eps
+ pm_ir = IsotonicRegression(out_of_bounds="clip", y_min=two_eps, y_max=1.0 - two_eps)
196
ps_ir = pm_ir.fit_transform(ps, treatment)
197
198
return ps_ir
0 commit comments