Skip to content

Make Fandango deterministic #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Make Fandango deterministic #406

merged 1 commit into from
Apr 7, 2025

Conversation

leonbett
Copy link

@leonbett leonbett commented Apr 5, 2025

Even with a fixed random seed, Fandango may produce different results.

This has two causes:

  • Unordered sets seem to introduce non-determinism.
  • evaluate_population_parallel seems to introduce non-determinism. I benchmarked this swiftly, and in my case evaluate_population was even faster (0.02 sec vs 0.03 sec)

This PR makes Fandango generate deterministic results for a given random seed.

@leonbett leonbett requested a review from joszamama April 5, 2025 16:00
@joszamama joszamama merged commit 39f5411 into dev Apr 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants