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
Gregory Ashton
PyFstat
Commits
d1a8b85e
Commit
d1a8b85e
authored
Oct 07, 2016
by
Gregory Ashton
Browse files
Adds ability to set the proposal_scale
parent
d7f2a89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
d1a8b85e
...
...
@@ -662,7 +662,7 @@ class MCMCSearch(BaseSearchClass):
return
p0
def
run
(
self
):
def
run
(
self
,
proposal_scale_factor
=
None
):
if
self
.
old_data_is_okay_to_use
is
True
:
logging
.
warning
(
'Using saved data from {}'
.
format
(
...
...
@@ -679,7 +679,7 @@ class MCMCSearch(BaseSearchClass):
sampler
=
emcee
.
PTSampler
(
self
.
ntemps
,
self
.
nwalkers
,
self
.
ndim
,
self
.
logl
,
self
.
logp
,
logpargs
=
(
self
.
theta_prior
,
self
.
theta_keys
,
self
.
search
),
loglargs
=
(
self
.
search
,),
betas
=
self
.
betas
)
loglargs
=
(
self
.
search
,),
betas
=
self
.
betas
,
a
=
proposal_scale_factor
)
p0
=
self
.
generate_initial_p0
()
p0
=
self
.
apply_corrections_to_p0
(
p0
)
...
...
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