lucastheis / cmt

Fast CPU implementations of several conditional probabilistic models
http://lucastheis.github.io/cmt/
MIT License
36 stars 14 forks source link

expose _cmt's seed as cmt's set_seed python function #23

Closed itsb closed 7 years ago

itsb commented 7 years ago

Ability to set random seed is critical for debugging and reproducibility. See corresponding PR in C2S repo.

lucastheis commented 7 years ago

Thanks for your pull request, itsb.

For debugging purposes from _cmt import seed would work of course, but I don't mind adding the function to utils.py. I would only prefer to keep calling it seed() so that it's in line with numpy.

itsb commented 7 years ago

renamed to seed and made corresponding updates to C2S PR