Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MarkovProcesses.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bentriou Mahmoud
MarkovProcesses.jl
Commits
5b3cbc2b
Commit
5b3cbc2b
authored
4 years ago
by
Bentriou Mahmoud
Browse files
Options
Downloads
Patches
Plain Diff
small change in abc prints
parent
66d44c7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algorithms/abc_smc.jl
+4
-4
4 additions, 4 deletions
algorithms/abc_smc.jl
with
4 additions
and
4 deletions
algorithms/abc_smc.jl
+
4
−
4
View file @
5b3cbc2b
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment