Closed ninell-oldenburg closed 1 year ago
There are multiple random seeds:
dmlab2d.Lab2d
(pybind C++) takes a seed in the lab2d_settings_dict
that is passed to Lua (see here).dmlab2d.Environment
takes a seed for it's Python/C++1 & 2 should be controllable by the env_seed
argument. However, this isn't wired in.
I've discussed this at https://github.com/deepmind/meltingpot/issues/113#issuecomment-1462212082 there may be more relevant info there on what solution to take (e.g. seed
in a config, as an override to build
, as an argument to reset()
).
Amazing, thank you! Wired it in.
Hi!
I'm trying to find a place to set a random seed for the initial substrate setting. However, all places I've tried so far seem to do it, and I was wondering if an interface exists anywhere in the code.
Things I've tried:
meltingpot/lua/modules/api_factory.lua
+ removingrandom:seed()
callsmeltingpot/python/configs/substrates/clean_up.py
(as an example) + adding anenv_seed
to thebuild()
function.meltingpot/python/substrate.py
+ adding anenv_seed
to the build function + all dependencies.Thanks in advance!