Skip to content

Reproducible results with the RandomAgent #251

Answered by mike-gimelfarb
GMMDMDIDEMS asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Please find my answers below:

However, if I change the number of episodes I get different different results. Shouldn't the results be identical in every episode?
Not quite. The seed generation provides a starting point for an (infinite) sequence of random numbers. That is, every episode may use a different seed in generating randomness, but the sequence of random numbers and outcome should still be identical each time you run the experiment (if you find this is not working, let us know). The run_gym examples all fix the seed, if I recall. To get the reproducible results with random agent, you need to fix the environment seed and the random policy seed, since they each use their own RN…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GMMDMDIDEMS
Comment options

Answer selected by GMMDMDIDEMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants