Description Usage Arguments Required members Optional members Examples
Take a function intended for training with reinforcement learning and create a valid gym environment object.
1 |
... |
Members to add to the new gym environment. This must contain at least a 'func', 'action_space' and 'observation_space' member |
A new gym environment requires the following key members:
The func function you want to learn parameters for
A vector of possible actions for the func
A vector of possible observations from the func function
There are also the following optional members:
A number between 0 and 1 dictating the level of randomness applied when running the func function. A lower number means it will return the intended result less often (exploring the total observation space more often)
1 2 3 4 5 6 7 | ## Not run:
build_gym_env(func = nchain_function,
action_space = c(1, 2),
observation_space = 1:5),
random = 0.5
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.