[graph-tool] Random seed in blockmodeling

Lietz, Haiko Haiko.Lietz at gesis.org
Mon Jan 20 16:52:28 CET 2020


> Is it possible to use a random seed when calling minimize_blockmodel_dl() or
> minimize_nested_blockmodel_dl() such that the inferred state is always the same?

This is the answer:

np.random.seed(42)
gt.seed_rng(42)

Glad talking to myself ;)

H

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20200120/9c5ea1dc/attachment.htm>


More information about the graph-tool mailing list