Skip to content
Snippets Groups Projects
Commit 5b3cbc2b authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

small change in abc prints

parent 66d44c7e
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ function _abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance::Float64, a ...@@ -129,7 +129,7 @@ function _abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance::Float64, a
@info "Step $t" @info "Step $t"
# Set new epsilon # Set new epsilon
epsilon = _compute_epsilon(vec_dist, alpha, old_epsilon, last_epsilon) epsilon = _compute_epsilon(vec_dist, alpha, old_epsilon, last_epsilon)
@info "Current epsilon and total number of simulations" epsilon nbr_tot_sim @info "Current epsilon" epsilon
@debug "5 first dist values" sort(vec_dist)[1:5] @debug "5 first dist values" sort(vec_dist)[1:5]
@debug mean(vec_dist), maximum(vec_dist), median(vec_dist), std(vec_dist) @debug mean(vec_dist), maximum(vec_dist), median(vec_dist), std(vec_dist)
...@@ -169,7 +169,7 @@ function _abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance::Float64, a ...@@ -169,7 +169,7 @@ function _abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance::Float64, a
@info "End" @info "End"
end end
current_time = time() current_time = time()
@info "After this step, time spent and number of simulations" steptime=(current_time-begin_time_ite) step_nbr_sim @info "After this step, time spent and number of simulations" steptime=(current_time-begin_time_ite) step_nbr_sim nbr_tot_sim
mat_p_old = copy(mat_p) mat_p_old = copy(mat_p)
wl_old = copy(wl_current) wl_old = copy(wl_current)
fill!(l_nbr_sim, 0) fill!(l_nbr_sim, 0)
...@@ -230,7 +230,7 @@ function _distributed_abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance ...@@ -230,7 +230,7 @@ function _distributed_abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance
@info "Step $t" @info "Step $t"
# Set new epsilon # Set new epsilon
epsilon = _compute_epsilon(vec_dist, alpha, old_epsilon, last_epsilon) epsilon = _compute_epsilon(vec_dist, alpha, old_epsilon, last_epsilon)
@info "Current epsilon and total number of simulations" epsilon nbr_tot_sim @info "Current epsilon" epsilon
@debug "5 first dist values" sort(vec_dist)[1:5] @debug "5 first dist values" sort(vec_dist)[1:5]
@debug mean(vec_dist), maximum(vec_dist), median(vec_dist), std(vec_dist) @debug mean(vec_dist), maximum(vec_dist), median(vec_dist), std(vec_dist)
...@@ -276,7 +276,7 @@ function _distributed_abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance ...@@ -276,7 +276,7 @@ function _distributed_abc_smc(pm::ParametricModel, nbr_particles::Int, tolerance
@info "End" @info "End"
end end
current_time = time() current_time = time()
@info "After this step, time spent and number of simulations" steptime=(current_time-begin_time_ite) step_nbr_sim @info "After this step, time spent and number of simulations" steptime=(current_time-begin_time_ite) step_nbr_sim nbr_tot_sim
mat_p_old = mat_p mat_p_old = mat_p
wl_old = wl_current wl_old = wl_current
vec_dist = convert(Array, d_vec_dist) vec_dist = convert(Array, d_vec_dist)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment