jboynyc / textnets

Text analysis with networks.
https://textnets.readthedocs.io/
GNU General Public License v3.0
284 stars 23 forks source link

Document how to fix random seed #16

Closed jboynyc closed 3 years ago

jboynyc commented 4 years ago

That's important for reproducibility.

jboynyc commented 4 years ago

igraph just uses Python's rng, so import random; random.seed(1234) ought to be enough.

But leidenalg requires the seed to be passed as an argument to find_partition. Should a fixed seed be hard-coded?

jboynyc commented 3 years ago

Something like the rcParams system in matplotlib might be the best way to set this and other global parameters.