Skip to content
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

Feature/rng removed from settings #126

Merged
merged 5 commits into from
Mar 5, 2019
Merged

Feature/rng removed from settings #126

merged 5 commits into from
Mar 5, 2019

Conversation

einar90
Copy link
Contributor

@einar90 einar90 commented Feb 28, 2019

Removed ability to set the RNG seed to be used in an optimizer.
This was done because the RNG seed would only have the desired effect
under very specific conditions: running an algorithm in serial mode on
one specific system. Some algorithms will for some reason not give
reproducible results even under this condition.

As the setting will in most cases just cause confusion, it has been
removed
. Setting the RNGSeed field in a driver file will cause an
error.

The parameter field in the settings has been kept, as it is
still useful in some unit tests.

The relevant change is found in Settings/optimizer.cpp.

Also add more tests for the random functions
As these tests will not always pass, performing tests can be confusing
because they will often report a failed test even though there is nothing wrong.

The running of the optimizers are kept to ensure that running the tests will still cover actual runtime errors from them.
Removed ability to set the RNG seed to be used in an optimizer.
This was done because the RNG seed would only have the desired effect
under very specific conditions: running an algorithm in serial mode on
one specific system. Some algorithms will for some reason not give
reproducible results even under this condition.

**As the setting will in most cases just cause confusion, it has been
removed**. Setting the RNGSeed field in a driver file will cause an
error.

The parameter field in the settings has been kept, as it is
still useful in some unit tests.
@einar90 einar90 changed the title Feature/rng seed fix Feature/rng removed from settings Feb 28, 2019
Copy link
Collaborator

@bragesk bragesk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@einar90 einar90 merged commit 8cac060 into develop Mar 5, 2019
@einar90 einar90 deleted the feature/RNG_seed_fix branch March 5, 2019 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants