Skip to content

Commit

Permalink
Systematically cleanup in fw step (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle authored Nov 3, 2024
1 parent fdc6da7 commit c0e39d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pairwise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ function pairwise_frank_wolfe(

gamma = min(gamma_max, gamma)

# cleanup and renormalize every x iterations. Only for the fw steps.
renorm = mod(t, renorm_interval) == 0
# away update
active_set_update!(
active_set,
Expand All @@ -274,7 +272,7 @@ function pairwise_frank_wolfe(
end
end
# fw update
active_set_update!(active_set, gamma, fw_vertex, renorm, fw_index)
active_set_update!(active_set, gamma, fw_vertex, true, fw_index)
end
# println(active_set.weights)
# println([atom[1] for atom in active_set.atoms])
Expand Down

0 comments on commit c0e39d9

Please sign in to comment.