Commit 8c93acec authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Update doctests

parent 97c05ac8
......@@ -1413,7 +1413,7 @@ class BlockState(MCMCState, MultiflipMCMCState, MultilevelMCMCState,
... ret = state.mcmc_sweep(niter=10)
... pe = state.collect_edge_marginals(pe)
>>> gt.bethe_entropy(g, pe)[0]
0.645886...
0.571383...
"""
......@@ -1471,7 +1471,7 @@ class BlockState(MCMCState, MultiflipMCMCState, MultilevelMCMCState,
... ret = state.mcmc_sweep(niter=10)
... pv = state.collect_vertex_marginals(pv)
>>> gt.mf_entropy(g, pv)
44.535225...
15.037062...
>>> gt.graph_draw(g, pos=g.vp["pos"], vertex_shape="pie",
... vertex_pie_fractions=pv, output="polbooks_blocks_soft_B4.svg")
<...>
......@@ -1532,7 +1532,7 @@ class BlockState(MCMCState, MultiflipMCMCState, MultilevelMCMCState,
... ret = state.mcmc_sweep(niter=10)
... ph = state.collect_partition_histogram(ph)
>>> gt.microstate_entropy(ph)
153.756324...
126.171367...
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment