junipertcy / bipartiteSBM

A Bayesian model+algorithm for community detection in bipartite networks

Home Page:https://docs.netscied.tw/bipartiteSBM/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when #nodes ≈ #(probed-)groups

junipertcy opened this issue · comments

Thanks @erikj540, who found error with these inputs,

edgelist = [[0, 3], [0, 4], [0, 5], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [2, 8]]
types =  [1, 1, 1, 2, 2, 2, 2, 2, 2]

Signs and symptoms:

AssertionError: [ERROR] inconsistency between mb. indexes and #blocks.

This is related to #6, but different. A pytest for this case is added in 330ddd2.
(I did a forced commit that removed 1a0f325.)