inoryy / reaver

Reaver: Modular Deep Reinforcement Learning Framework. Focused on StarCraft II. Supports Gym, Atari, and MuJoCo.
MIT License
554 stars 89 forks source link

Random seed setting #13

Closed Taylor-Liu closed 6 years ago

Taylor-Liu commented 6 years ago

Hi, inoryy. How did you set your random seed, as shown in your learning curves?

inoryy commented 6 years ago

Hello, the learning curves are shown for different (non-fixed) random seeds, there was no need to set them manually.

If you want to do it yourself, add these lines somewhere before graph vars are initialized:

tf.set_random_seed(1234)
np.random.seed(1234)

However note that due to how CUDA works internally you might still experience non-deterministic behavior.

Taylor-Liu commented 6 years ago

Thanks!