-
Notifications
You must be signed in to change notification settings - Fork 56
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
Same code produces different results in VScode vs terminal #220
Comments
Try to set the same random seed on both platforms otherwise the results might differ between runs since these algorithms are stochastic. |
Hi, thanks. I did set the same seeds already. So I don’t think that’s the issue.
On 15 Aug 2023, at 10:58, Robert Feldt ***@***.***> wrote:
Try to set the same random seed on both platforms otherwise the results might differ between runs since these algorithms are stochastic.
—
Reply to this email directly, view it on GitHub<#220 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKTA7G5O3IGPUZUKO22BIALXVM2ZPANCNFSM6AAAAAA2RFJJDY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hmm, then I don't understand it. If you're on the same machine, same Julia version, and everything else is the same there shouldn't be a difference. Are you sure VSCode is invoking the same Julia binary as when you run from the terminal? Maybe include a call to |
Maybe |
@JobJob but why would we need to do this within BlackBoxOptim when the user can do it themselves if they need a particular RNG "behavior"? Please clarify, maybe I'm missing something. |
Just if you wanted the same seed to produce the same result, for reproducibility. This is what I assumed would happen if I called |
I guess my thinking is: what's the point of providing a RngSeed if it doesn't lead to reproducible results? |
Yes, for sure, you have a point. I'm considering skipping the fiddling with the RNG inside of the package though. Hmm, let me revisit the design around this, not sure why we introduced that in the first place... ;) |
Yeah I think that makes sense to remove all the RNG seeding stuff completely.
…________________________________
From: Robert Feldt ***@***.***>
Sent: Thursday, December 21, 2023 12:11:11 AM
To: robertfeldt/BlackBoxOptim.jl ***@***.***>
Cc: Joel Mason ***@***.***>; Mention ***@***.***>
Subject: Re: [robertfeldt/BlackBoxOptim.jl] Same code produces different results in VScode vs terminal (Issue #220)
Yes, for sure, you have a point. I'm considering skipping the fiddling with the RNG inside of the package though. Hmm, let me revisit the design around this, not sure why we introduced that in the first place... ;)
—
Reply to this email directly, view it on GitHub<#220 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAGQRJ2VM52FZM2YHNGIXU3YKNO77AVCNFSM6AAAAAA2RFJJD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVGIYTCNZQGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Ok, now changed on master: |
Hi,
Thanks for this great package.
I am using
bboptimize
to find the minimum of a non-linear function. My approach is very simpleThis code produces different results if I run it on VScode or if I call Julia in batch mode from the terminal of my computer. Since everything else is identical (package version, seeds, and objective function) I wonder if
bboptimize
searches differently depending on how it is called.Is this a known issue? Is there any way to make sure
bboptimize
gives the same results in both cases?Thank you.
The text was updated successfully, but these errors were encountered: