Skip to content

Fixing a random seed #386

Answered by MilesCranmer
AKHCE asked this question in Q&A
Discussion options

You must be logged in to vote

See https://astroautomata.com/PySR/api/#performance-and-parallelization

for example

random_state=42,
deterministic=True,
procs=0,
multithreading=False,

Would get deterministic results with a seed of 42.

Note it’s slower as determinism requires that we can’t use multiple threads.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AKHCE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion
2 participants