Skip to content

Commit 9769f7d

Browse files
committed
Patch
1 parent ae09286 commit 9769f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/glum/_glm_cv.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ def _get_deviance(coef):
599599

600600
(
601601
x_train,
602-
col_means,
603-
col_stds,
602+
self.col_means_,
603+
self.col_stds_,
604604
lower_bounds,
605605
upper_bounds,
606606
A_ineq,
@@ -655,7 +655,7 @@ def _get_deviance(coef):
655655

656656
if self.fit_intercept:
657657
intercept_path_, coef_path_ = _unstandardize(
658-
col_means, col_stds, coef[:, 0], coef[:, 1:]
658+
self.col_means_, self.col_stds_, coef[:, 0], coef[:, 1:]
659659
)
660660
assert isinstance(intercept_path_, np.ndarray) # make mypy happy
661661
deviance_path_ = [
@@ -667,7 +667,7 @@ def _get_deviance(coef):
667667
else:
668668
# set intercept to zero as the other linear models do
669669
intercept_path_, coef_path_ = _unstandardize(
670-
col_means, col_stds, np.zeros(coef.shape[0]), coef
670+
self.col_means_, self.col_stds_, np.zeros(coef.shape[0]), coef
671671
)
672672
deviance_path_ = [_get_deviance(_coef) for _coef in coef_path_]
673673

0 commit comments

Comments
 (0)