Commit 03b4d2c0 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

inference.blockmodel: Fix corner case problem with nested SBM + edge covariates

parent c7d2dfcc
Pipeline #339 passed with stage
in 170 minutes and 47 seconds
......@@ -964,7 +964,8 @@ def hierarchy_minimize(state, B_min=None, B_max=None, b_min=None, b_max=None,
if state.levels[-1].B > 1:
bstate = state.levels[-1]
bstate = bstate.get_block_state(b=zeros(state.levels[-1].B),
deg_corr=False)
deg_corr=False,
Lrecdx=bstate.Lrecdx)
state.levels.append(bstate)
state._regen_Lrecdx()
......
Supports Markdown
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