Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Keitel
PyFstat
Commits
c0d1c423
Commit
c0d1c423
authored
Aug 16, 2017
by
Gregory Ashton
Browse files
Adds acceptance fraction to saved data
parent
7ef67d29
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/mcmc_based_searches.py
View file @
c0d1c423
...
...
@@ -352,9 +352,12 @@ class MCMCSearch(core.BaseSearchClass):
total
=
nburn
+
nprod
):
pass
self
.
mean_acceptance_fraction
=
np
.
mean
(
sampler
.
acceptance_fraction
,
axis
=
1
)
logging
.
info
(
"Mean acceptance fraction: {}"
.
format
(
np
.
mean
(
sampler
.
acceptance_fraction
,
axis
=
1
)
))
.
format
(
self
.
mean
_
acceptance_fraction
))
if
self
.
ntemps
>
1
:
self
.
tswap_acceptance_fraction
=
sampler
.
tswap_acceptance_fraction
logging
.
info
(
"Tswap acceptance fraction: {}"
.
format
(
sampler
.
tswap_acceptance_fraction
))
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment