-
Notifications
You must be signed in to change notification settings - Fork 5
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
Something is wrong with the seed #82
Comments
I cannot reproduce the exact bounds as above, but I can reproduce the problem where the estimated bounds after running The reason for this is due to the step of extracting RNGkind("Wichmann-Hill")
set.seed(2)
.Random.seed
#> [1] 10400 21758 7530 10264 Thus, I propose the following method in extracting the seed instead:
In this method, I do not need to change |
I guess this is ok, but it seems like a hack, which means it is probably prone to causing more unforeseen problems, especially since neither of us is an expert on the specifics of parallel programming. If we want to go this route, wouldn't it be easier just to generate a set of random seeds in serial first? These should be the same each draw if the user has set the seed. Then these can be passed to As I said in #72, I really think it would be a good idea to dig into the discussion about this issue in the I looked at their GitHub issues and found many posts (both in their repo and elsewhere) that seem like they might provide clues:
So reading some of these would show us the right way to do things. |
I see. For generating a set of random seeds in serial, do you mean first generating a sequence of numbers in the beginning (say via I will also read the discussions in the |
Yes exactly |
Although do they even need to be random numbers? |
Just fixed the problem! After reading various posts, I find that the problem can be solved in a much straightforward way by simply setting Using the updated code, the following result is obtained by running the above code: Estimated bounds: [0.39067, 0.55121]
Estimated bounds: [0.39067, 0.55121]
p-value (by data-driven 'lambda'): 0.88
Estimated bounds: [0.39067, 0.55121] The three set of bounds will still be the same if I set other RNG types. For instance, if I set Estimated bounds: [0.4576, 0.45883]
Estimated bounds: [0.4576, 0.45883]
p-value (by data-driven 'lambda'): 0.55
Estimated bounds: [0.4576, 0.45883] Thanks! |
That's great! |
I find the third link that you shared above is one of the most relevant and updated posts. |
Something inside
fsst
, perhaps other routines, is messing with the seed in a fundamental way.Gives this
I think we don't want anything in
lpinfer
to mess with the seed.The user should just set that on their own.
I know we talked about this before, but can't remember what we decided.
Let me know if I am forgetting an important case.
The text was updated successfully, but these errors were encountered: