Skip to content

Commit

Permalink
bug fix with pm.sample (kwargs)
Browse files Browse the repository at this point in the history
  • Loading branch information
hposborn committed Jul 8, 2024
1 parent 9185650 commit 9ce5141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MonoTools/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2667,9 +2667,9 @@ def SampleModel(self, n_draws=500, n_burn_in=None, overwrite=False, continue_sam
if self.debug: print(self.init_soln.keys())
if hasattr(self,'trace') and continue_sampling:
print("Using already-generated MCMC trace as start point for new trace")
self.trace = pm.sample(tune=n_burn_in, draws=n_draws, chains=n_chains, trace=self.trace, compute_convergence_checks=False, **kwargs)
self.trace = pm.sample(tune=n_burn_in, draws=n_draws, chains=n_chains, trace=self.trace, compute_convergence_checks=False)#, **kwargs)
else:
self.trace = pm.sample(tune=n_burn_in, draws=n_draws, start=self.init_soln, chains=n_chains, compute_convergence_checks=False, **kwargs)
self.trace = pm.sample(tune=n_burn_in, draws=n_draws, start=self.init_soln, chains=n_chains, compute_convergence_checks=False)#, **kwargs)
self.trace=az.extract(self.trace)
#Saving both the class and a pandas dataframe of output data.
self.SaveModelToFile()
Expand Down

0 comments on commit 9ce5141

Please sign in to comment.