Skip to content

Commit

Permalink
fixup (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo Stella <stellalo@amazon.de>
  • Loading branch information
lostella and Lorenzo Stella committed Oct 30, 2023
1 parent c5e0251 commit d2effec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/cubic_sparse_logreg/runme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function run_cubic_logreg_data(
x0 = zeros(n)
x_pert = x0 + randn(size(x0))

grad_x, _ = ProximalCore.gradient(f, x0)
grad_x_pert, _ = ProximalCore.gradient(f, x_pert)
_, grad_x = AdaProx.eval_with_gradient(f, x0)
_, grad_x_pert = AdaProx.eval_with_gradient(f, x_pert)
gam_init = norm(x0 - x_pert)^2 / dot(grad_x - grad_x_pert, x0 - x_pert)

# run algorithm with 1/10 the tolerance to get "accurate" solution
Expand Down

0 comments on commit d2effec

Please sign in to comment.