Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbittarello committed Nov 4, 2024
1 parent ae09286 commit 9769f7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/glum/_glm_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ def _get_deviance(coef):

(
x_train,
col_means,
col_stds,
self.col_means_,
self.col_stds_,
lower_bounds,
upper_bounds,
A_ineq,
Expand Down Expand Up @@ -655,7 +655,7 @@ def _get_deviance(coef):

if self.fit_intercept:
intercept_path_, coef_path_ = _unstandardize(
col_means, col_stds, coef[:, 0], coef[:, 1:]
self.col_means_, self.col_stds_, coef[:, 0], coef[:, 1:]
)
assert isinstance(intercept_path_, np.ndarray) # make mypy happy
deviance_path_ = [
Expand All @@ -667,7 +667,7 @@ def _get_deviance(coef):
else:
# set intercept to zero as the other linear models do
intercept_path_, coef_path_ = _unstandardize(
col_means, col_stds, np.zeros(coef.shape[0]), coef
self.col_means_, self.col_stds_, np.zeros(coef.shape[0]), coef
)
deviance_path_ = [_get_deviance(_coef) for _coef in coef_path_]

Expand Down

0 comments on commit 9769f7d

Please sign in to comment.