mrftools.GibbsSampler module¶
Gibbs sampling class
-
class
mrftools.GibbsSampler.GibbsSampler(markov_net)[source]¶ Bases:
objectObject that can run Gibbs sampling on a MarkovNet
-
burn_in(iters)[source]¶ Run the state update procedure until mixed. :param iters: number of iterations for mixing
-
count_occurrences(var)[source]¶ Count the number of times in our samples the variable was in each state.
Parameters: var (object) – variable to count the states of Returns: count array of state occurrences Return type: arraylike
-