CyberPoint / libpgm

A library for creating and using probabilistic graphical models
BSD 3-Clause "New" or "Revised" License
76 stars 44 forks source link

Removed 'random.seed()' to allow replication #17

Closed yegortk closed 8 years ago

yegortk commented 8 years ago

Seed should instead be set before the package is run - to allow for replication.

When random.seed(xx) is not used before the functions are run, the random generator will be initialized with some system parameters like time. When it is used, e.g. random.seed(999), it will set a random number generator for the use in all subsequently called functions in libpgm, and the process will be replicable.