The seed() function is broken
See original GitHub issueThe seeds are not consistent across environment instances. This means there’s some other source of non-determinism. I’m guessing this means that contestants have access to unlimited seeds…
Demo script:
import os
from obstacle_tower_env import ObstacleTowerEnv
counter = {}
for i in range(0, 25):
env = ObstacleTowerEnv('./ObstacleTower/obstacletower.x86_64', worker_id=i)
env.seed(25)
env.reset()
for _ in range(50):
obs, _, _, _ = env.step(0)
key = str(obs.flatten().tolist())
counter[key] = True
print('got %d start states' % len(counter))
env.close()
In older versions of the environment, this script works pretty much as expected.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Python random seed not working with Genetic Programming ...
I am trying to get reproducible results with the genetic programming code in chapter 11 of "Programming Collective Intelligence" by Toby Segaran ...
Read more >tf.random is broken since Monterey 12.1 - Apple Developer
The workaround doesn't work in a tf.function, this is a real problem. · Good point tf.random. · Unfortunately, it still does not work...
Read more >`db seed` returns a lot of unrelated information on broken ...
I was missing a dependency for my seed script, but got a lot more output: gitpod /workspace/foo $ npx prisma db seed --preview-feature...
Read more >Legacy GM - Random Seed Function - Not Working
Hi everyone, I'm having issues with the random_set_seed() function. My game makes levels based on a seed so that when the user returns...
Read more >Math.randomseed seemingly broken? - Scripting Support
Okay, so I probably just don't understand how it works, but I'm having an issue with randomseed. I have a folder of 100...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all,
We’ve have just pushed the v2.1 release which aims to fix this. Please let us know if you still run into an issue.
Hi @awjuliani I see. I didn’t know that tower-seed value range is limited to 100 in Round 2. Thanks~