def pymcplot(self): ''' Generates a pymc plot for each parameter in self.. This plot includes a trace, histogram, and autocorrelation plot. For more control over the plots, see MCMCplots module. This is meant as a diagnostic tool only. ''' from pymc.Matplot import plot as pymc_plot for name in self.params.keys(): pymc_plot(self.db.trace(name), format='png', path=self.working_dir) print 'pymc plots generated for = %s' % self.params.keys()
def plot_pymc_autocorrelation(mcmc_database, keys, working_dir): for key in keys: trace = mcmc_database.trace(key) pymc_plot(trace, 'png', path=working_dir) return None