Skip to content

Commit

Permalink
Fix covariance_matrix dtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
stanmart committed Aug 14, 2023
1 parent fad75ff commit af87010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ def covariance_matrix(
/ (sum_weights - self.n_features_in_ - int(self.fit_intercept))
)
else:
inner_part = gradient.sandwich(np.ones_like(y))
inner_part = gradient.sandwich(np.ones_like(y, dtype=X.dtype))
correction = sum_weights / (
sum_weights - self.n_features_in_ - int(self.fit_intercept)
)
Expand Down

0 comments on commit af87010

Please sign in to comment.