Skip to content

Commit cdc21ea

Browse files
fix undefined name 'X_coeff'
1 parent a549bba commit cdc21ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skglm/experimental/sqrt_lasso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def path(self, X, y, alphas=None, eps=1e-3, n_alphas=10):
223223
# coef_init holds a ref to coef
224224
coef = coef_init
225225
X_coef = X @ coef[:-1] + coef[-1] if self.fit_intercept else X @ coef
226-
res_norm = norm(y - X_coeff)
226+
res_norm = norm(y - X_coef)
227227
warnings.warn(
228228
f"Small residuals prevented the solver from converging "
229229
f"at alpha={alphas[i]:.2e} (residuals' norm: {res_norm:.4e}). "

0 commit comments

Comments
 (0)