From d2effecaf6bb097379d66c3f22f1fe1b55b135a8 Mon Sep 17 00:00:00 2001 From: Lorenzo Stella Date: Mon, 30 Oct 2023 15:36:27 +0100 Subject: [PATCH] fixup (#30) Co-authored-by: Lorenzo Stella --- experiments/cubic_sparse_logreg/runme.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/cubic_sparse_logreg/runme.jl b/experiments/cubic_sparse_logreg/runme.jl index 43b7f2e..86a5def 100644 --- a/experiments/cubic_sparse_logreg/runme.jl +++ b/experiments/cubic_sparse_logreg/runme.jl @@ -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