You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any size-1 block should just have zero probability.
Actual Behavior
In sbm_estimators.py, _calculate_block_p calls _calculate_p, which divides zero when block.size = 0.
This can happen when some block has size one and loops=False is used.
Adding
if block.size == 0:
continue
before Line 519 of graspologic/graspologic/models/sbm_estimators.py should do the trick.
The text was updated successfully, but these errors were encountered:
Expected Behavior
Any size-1 block should just have zero probability.
Actual Behavior
In
sbm_estimators.py
,_calculate_block_p
calls_calculate_p
, which divides zero whenblock.size = 0
.This can happen when some block has size one and
loops=False
is used.Adding
before Line 519 of
graspologic/graspologic/models/sbm_estimators.py
should do the trick.The text was updated successfully, but these errors were encountered: