Commit 7ca4f6b5 authored by Tiago Peixoto's avatar Tiago Peixoto

inference.rst: Fix doctest

parent a2a87884
Pipeline #258 failed with stage
in 176 minutes and 50 seconds
......@@ -1084,14 +1084,14 @@ approach for the same network, using the nested model.
g = gt.collection.data["lesmis"]
L = 10
nL = 10
for deg_corr in [True, False]:
state = gt.minimize_nested_blockmodel_dl(g, deg_corr=deg_corr) # Initialize the Markov
# chain from the "ground
# state"
bs = state.get_bs() # Get hierarchical partition.
bs += [np.zeros(1)] * (L - len(bs)) # Augment it to L = 10 with
bs += [np.zeros(1)] * (nL - len(bs)) # Augment it to L = 10 with
# single-group levels.
state = state.copy(bs=bs, sampling=True)
......
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