Skip to content

Commit

Permalink
Update src/fista.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
passscoed and github-actions[bot] authored Aug 1, 2024
1 parent 859dc5e commit 70de889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fista.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ function fista!(

# Q
if classification
Q = (
(1 / length(y)) * sum(loss2_function.(y .* (F * hhat))) +
Q = (
(1 / length(y)) * sum(loss2_function.(y .* (F * hhat))) +
dot(vec(ghat - hhat), vec(fgrad)) +
L / 2 * norm(vec(ghat - hhat))^2 +
λ * sum(abs.(vec(ghat)))
Expand Down

0 comments on commit 70de889

Please sign in to comment.