Skip to content

Commit a3f7f82

Browse files
committed
change to ensure_all_finite
1 parent 3d362aa commit a3f7f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doubleml/plm/lplr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def _check_data(self, obj_dml_data):
169169
raise TypeError("The outcome variable y must be binary with values 0 and 1.")
170170

171171
def _nuisance_est(self, smpls, n_jobs_cv, external_predictions, return_models=False):
172-
x, y = check_X_y(self._dml_data.x, self._dml_data.y, force_all_finite=False)
173-
x, d = check_X_y(x, self._dml_data.d, force_all_finite=False)
172+
x, y = check_X_y(self._dml_data.x, self._dml_data.y, ensure_all_finite=False)
173+
x, d = check_X_y(x, self._dml_data.d, ensure_all_finite=False)
174174
x_d_concat = np.hstack((d.reshape(-1, 1), x))
175175
m_external = external_predictions["ml_m"] is not None
176176
M_external = external_predictions["ml_M"] is not None

0 commit comments

Comments
 (0)