You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def __init__(self, tau):
## Some initializations. Will eventually parameterize this in the constructor.
self.tau = tau
self.current_temp = np.random.random(size=(1,))
super().__init__()
We then want to run this environment with the Runner, like:
Given the above, is there a way to pass keywords through to customize the Tensorforce environment that is being created by the runner? I saw that it is possible to define a spec via JSON, but this would require writing different JSON files for each environment variation to be created.
The text was updated successfully, but these errors were encountered:
Thanks for such a useful codebase. I had a question re customizing environment creation via the runner class.
Say we have an environment like the
ThermostatEnvironment
defined in: https://github.com/tensorforce/tensorforce/blob/master/examples/temperature-controller.ipynbbut the constructor takes
tau
as a parameter:We then want to run this environment with the
Runner
, like:But we want to configure the environment with a different tau for a variety of different runs. So ideally we could do something like:
However, the
Runner
constructor doesn't pass kwargs to theEnvironment.create
in:tensorforce/tensorforce/execution/runner.py
Lines 168 to 171 in 868d12d
Given the above, is there a way to pass keywords through to customize the Tensorforce environment that is being created by the runner? I saw that it is possible to define a spec via JSON, but this would require writing different JSON files for each environment variation to be created.
The text was updated successfully, but these errors were encountered: