Skip to content

Fix determinism in unit test #2530

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 2 commits into from
Sep 11, 2019
Merged

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Sep 11, 2019

Turns out str(dict) doesn’t call the __str__ method on the values of the dict, so the seed was something like {'trainers.tests.test_simple_rl': <mlagents.envs.brain.BrainParameters object at 0x1311ad400>}

I also restored the threshold that was lowered in #2520

Copy link
Contributor

@ervteng ervteng 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!

@chriselion chriselion merged commit 77c83cc into develop Sep 11, 2019
@chriselion chriselion deleted the develop-fix-test-determinism branch September 12, 2019 22:14
surfnerd pushed a commit that referenced this pull request Sep 12, 2019
* initialize random instance correctly

* restore threshold (I hope)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants