From 9769f7d42bde6c313d0eeaf110017c4791462ad8 Mon Sep 17 00:00:00 2001 From: lbittarello Date: Mon, 4 Nov 2024 09:17:07 +0000 Subject: [PATCH] Patch --- src/glum/_glm_cv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glum/_glm_cv.py b/src/glum/_glm_cv.py index 499c11d8..4a78ff03 100644 --- a/src/glum/_glm_cv.py +++ b/src/glum/_glm_cv.py @@ -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, @@ -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_ = [ @@ -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_]