Skip to content

Commit

Permalink
Fix typos (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybchris authored Aug 8, 2021
1 parent 2783e09 commit 1bb4f3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion econml/sklearn_extensions/linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ def fit(self, X, y, sample_weight=None, freq_weight=None, sample_var=None):
param, _, rank, _ = np.linalg.lstsq(WX, wy, rcond=None)

if rank < param.shape[0]:
warnings.warn("Co-variance matrix is undertermined. Inference will be invalid!")
warnings.warn("Co-variance matrix is underdetermined. Inference will be invalid!")

sigma_inv = np.linalg.pinv(np.matmul(WX.T, WX))
self._param = param
Expand Down
2 changes: 1 addition & 1 deletion econml/solutions/causal_analysis/_causal_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def fit(self, X, y, warm_start=False):
f"but was given {self.nuisance_models}")

assert self.heterogeneity_model in ['linear', 'forest'], (
"The only supported heterogeneity models are 'linear' and, 'forest but received "
"The only supported heterogeneity models are 'linear' and 'forest' but received "
f"{self.heterogeneity_model}")

assert np.ndim(X) == 2, f"X must be a 2-dimensional array, but here had shape {np.shape(X)}"
Expand Down

0 comments on commit 1bb4f3f

Please sign in to comment.