Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #106 from isofer/master

BUG: MCMC.sample with burn_till_tuned was broken
  • Loading branch information...
commit a2ecfa01e760a8ad8e92a6ce64900f8c0fad8618 2 parents b8060e2 + 1f586ea
Chris Fonnesbeck fonnesbeck authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  pymc/MCMC.py
3  pymc/MCMC.py
@@ -219,6 +219,7 @@ def sample(self, iter, burn=0, thin=1, tune_interval=1000, tune_throughout=True,
219 219
220 220 self._n_tally = int(iter) - int(burn)
221 221 if burn_till_tuned:
  222 + self._stop_tuning_after = stop_tuning_after
222 223 tune_throughout = False
223 224 if verbose > 0:
224 225 print "burn_til_tuned is True. tune_throughout is set to False"
@@ -272,6 +273,8 @@ def _loop(self):
272 273 new_burn = self._current_iter + int(self._stop_tuning_after * self._tune_interval)
273 274 self._burn = max(new_burn, self._burn);
274 275 self._iter = self._burn + self._n_tally
  276 + self.pbar = ProgressBar(self._iter)
  277 + self.pbar.animate(i+1)
275 278
276 279 # Manage burn-in
277 280 if i == self._burn:

0 comments on commit a2ecfa0

Please sign in to comment.
Something went wrong with that request. Please try again.