From 83afc68262ff892527373dd53525c61d2d339594 Mon Sep 17 00:00:00 2001 From: Orso Meneghini Date: Mon, 21 Oct 2024 21:45:05 -0700 Subject: [PATCH] more regularization --- src/fixed2free.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fixed2free.jl b/src/fixed2free.jl index 9c874b0..38d820d 100644 --- a/src/fixed2free.jl +++ b/src/fixed2free.jl @@ -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