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

fix outfile abc

parent 8bb99324
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ function automaton_abc(pm::ParametricModel; nbr_particles::Int = 100, alpha::Flo
@assert kernel_type in ["mvnormal", "knn_mvnormal"]
if dir_results != nothing
dir_results = basename(dir_results) != "" ? dir_results * "/" : dir_results
file_cfg = open(dir_results * "results.out", "w")
file_cfg = open(dir_results * "results_abc.out", "w")
write(file_cfg, "ParametricModel : $(pm) \n")
write(file_cfg, "Number of particles : $(nbr_particles) \n")
write(file_cfg, "alpha : $(alpha) \n")
......@@ -74,7 +74,7 @@ function abc_smc(pm::ParametricModel, l_obs::AbstractVector, func_dist::Function
@assert kernel_type in ["mvnormal", "knn_mvnormal"]
if dir_results != nothing
dir_results = basename(dir_results) != "" ? dir_results * "/" : dir_results
file_cfg = open(dir_results * "results.out", "w")
file_cfg = open(dir_results * "results_abc.out", "w")
write(file_cfg, "Configuration of ABC algorithm\n")
write(file_cfg, "ParametricModel : $(pm) \n")
write(file_cfg, "Number of particles : $(nbr_particles) \n")
......
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