Skip to content

Commit

Permalink
more regularization
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Oct 22, 2024
1 parent fe9f21e commit 83afc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fixed2free.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function optimal_λ_regularize(
cost_λ = λ -> cost_λ_regularize(λ, coils, EQ, image; flux_cps, saddle_cps, iso_cps, ψbound, fixed_coils, Sb)
costs = log10.([cost_λ(λ) for λ in λ_range_exp])
costs = costs .- minimum(costs)
costs = costs .+ λ_range_exp ./ max_exp .* maximum(costs) * 0.01
costs = costs .+ λ_range_exp ./ max_exp .* maximum(costs) * 0.1
opti_λ = λ_range_exp[argmin(costs)]
return 10^opti_λ
end
Expand Down

0 comments on commit 83afc68

Please sign in to comment.