-
Notifications
You must be signed in to change notification settings - Fork 177
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
refactor: make RNG independent of algorithm order #1905
refactor: make RNG independent of algorithm order #1905
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1905 +/- ##
=======================================
Coverage 49.44% 49.44%
=======================================
Files 408 408
Lines 22704 22704
Branches 10371 10371
=======================================
Hits 11226 11226
Misses 4266 4266
Partials 7212 7212 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
/cc @HadrienG2 Do we think it's a problem if all algorithms get the same random number sequence? |
That would result in correlations, which would be directly visible if two copies of the same (or similar) algorithms are run, but I don't think we currently do that often. On different algorithms, I expect the effect to be more subtle. |
📊 Physics performance monitoring for 6ef3324Full report VertexingSeedingCKFAmbiguity resolutionTruth tracking (Kalman Filter)Truth tracking (GSF) |
I think we should probably be ok. |
will do 👍 at the same time we should then get a 1:1 in your branch if we merge this first |
Docker error? |
something is off with the CI and I just got more conflicts with main 😄 |
…-independent-of-algo-order
Ok I think the CI is back now. |
…ndiwand/acts into refactor/rng-independent-of-algo-order
|
Just one thought: Would it be useful to make this optional and off by default? |
I think it would be easier to just pass in two different RNG to the algorithms in this case @benjaminhuth digging a little bit into the code this seems to be possible. you can give each algorithm a different seed |
oh no... we have another propagation error with the changed seed
|
increasing the iteration limit again seems to fix the problem. lets see if this passes this time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There's no strong reason to have these as separate objects. This PR will change outputs because of the random number seed generation, see #1905.
after discussion with paul I though it would be beneficial to remove the dependence of the algorithm order of the RNG in the examples framework. changing the order of reader/writer/algorithms used to result in different outputs which might be unexpected and hard to debug
I believe the impact on the randomness in the simulation is negligible and should not result in funny correlations