"verbose = True" does not seem to work for "mcmc_sweep()"
System info:
- Docker. Latest graph_tool version.
- Jupyter notebook
For "mcmc_sweep()" and "gibbs_sweep()," the option "verbose = True" only displays information when executing a ".py" script. It would be very convenient if information were also displayed in Jupyter notebooks.
Example:
g = gt.collection.data["lesmis"]
state = gt.BlockState(g, B=20) # This automatically initializes the state
# with a random partition into B=20
# nonempty groups; The user could
# also pass an arbitrary initial
# partition using the 'b' parameter.
# Now we run 1,000 sweeps of the MCMC. Note that the number of groups
# is allowed to change, so it will eventually move from the initial
# value of B=20 to whatever is most appropriate for the data.
dS, nmoves = state.mcmc_sweep(niter=1000, verbose=True)
If in a Jupyter notebook, "verbose=True" does not display the relevant information.