Commit d1a8b85e authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds ability to set the proposal_scale

parent d7f2a89f
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment