Skip to content

ENH flexible gram solver with penalty and using datafit #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix w_init
  • Loading branch information
PABannier committed May 14, 2022
commit fc791d6bbe7fb3405139ec193a55445001618596
4 changes: 2 additions & 2 deletions skglm/solvers/cd_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def cd_solver_path(X, y, datafit, penalty, alphas=None,
if (hasattr(penalty, "alpha_max") and penalty.alpha /
penalty.alpha_max(datafit.Xty) < 1e-3) or solver == "fista":
sol = fista_gram_quadratic(
X, y, penalty, max_epochs=max_epochs, tol=tol, w_init=None,
X, y, penalty, max_epochs=max_epochs, tol=tol, w_init=coef_init,
verbose=verbose)
else:
sol = cd_gram_quadratic(
X, y, penalty, max_epochs=max_epochs, tol=tol, w_init=None,
X, y, penalty, max_epochs=max_epochs, tol=tol, w_init=coef_init,
verbose=verbose)
w = sol[0]
else:
Expand Down