Fixing a random seed #386
-
Hi As far as I know, initial population and mutation are at least two exemplars where randomness comes into play in symbolic regression. I appreciate you kindly explaining how we can control seed of the random functions in PySr in order to reproducer the results if needed. Cheers, |
Beta Was this translation helpful? Give feedback.
Answered by
MilesCranmer
Jul 19, 2023
Replies: 1 comment
-
See https://astroautomata.com/PySR/api/#performance-and-parallelization for example
Would get deterministic results with a seed of 42. Note it’s slower as determinism requires that we can’t use multiple threads. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AKHCE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://astroautomata.com/PySR/api/#performance-and-parallelization
for example
Would get deterministic results with a seed of 42.
Note it’s slower as determinism requires that we can’t use multiple threads.