bartz.mcmcloop.PrintCallback

class bartz.mcmcloop.PrintCallback(dot_every, report_every, accumulator)[source]

Progress-printing callback for run_mcmc, see make_print_callback.

dot_every: Int32[Array, ''] | None

A dot is printed every dot_every MCMC iterations, None to disable.

report_every: Int32[Array, ''] | None

A one line report is printed every report_every MCMC iterations, None to disable.

accumulator: StatsAccumulator

Running average of the reported statistics, inert unless averaging.

__call__(*, state, burnin, i_total, n_burn, n_save, n_skip, **_)[source]

Print a dot and/or a report periodically during the MCMC.

Return type:

tuple[State, PrintCallback]