Open mikk-c opened 2 years ago
Hello @mikk-c
This is normal due to the fact that graph_tool.minimize_blockmodel_dl
does not expect the argument B_max
since B_max
is not a parameter listed as can be seen in the documentation here.
graph_tool.minimize_blockmodel_dl
may take four arguments: the graph
, the state
to be used, a dictionary that may contain the arguments for the related state constructor, and finally, a dictionary with arguments passed to the multilevel agglomerative MCMC sweeps.
I get the same error with running minimize_nested_blockmodel_dl(g, B_max = 20)
, as the returned error suggested in OP's case. minimize_nested_blockmodel_dl(g2, **{'B_max':'20'})
returns the same.
The argument should not be a problem according to the documentation.
Maybe @count0 knows the fix?
This is NOT the official repository of graph-tool! It's a clone someone made over 9 years ago!
The actual repository is here: https://git.skewed.de/count0/graph-tool
If you want the developers to actually see your issues, please post there!
On graph_tool 2.44:
Expected behavior: the functions should find partitions with at most 4 blocks, as described in the documentation: https://graph-tool.skewed.de/static/doc/inference.html#graph_tool.inference.minimize_blockmodel_dl