Thank you Tiago Peter On 12 Dec. 2016 23:05, "Tiago de Paula Peixoto" <tiago@skewed.de> wrote: On 12.12.2016 06:04, Peter Straka wrote:
Dear list,
in the example on Edge layers and covariates < https://graph-tool.skewed.de/static/doc/demos/inference/inference.html#edge-... , blocks are fitted as follows:
state = gt.minimize_blockmodel_dl(g, deg_corr=False, layers=True, state_args=dict(ec=g.ep.value, layers=False))
I'm trying to make sure I understand the LayeredBlockState correctly. Are the following statements correct?
1. The independent layers version is used, which means that there is one layer for every possible number of co-appearances. /This means that number of co-appearances is treated as a categorical, rather than an ordinal variable. / 2. If one wanted to encourage the model to assort actors into the same block if they have many co-appearances, the following fit would be more appropriate:
state = gt.minimize_blockmodel_dl(g, deg_corr=False, layers=False, state_args=dict(eweight=g.ep.value))
Both statements are correct. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool