|
mlpack
|
To use the dummy environment, one may start by specifying the state and action dimensions. More...
#include <env_type.hpp>
Classes | |
| class | Action |
| Implementation of discrete action. More... | |
| class | State |
| Implementation of state of the dummy environment. More... | |
Public Member Functions | |
| double | Sample (const State &, const Action &, State &) |
| Dummy function to mimic sampling in an environment. More... | |
| State | InitialSample () |
| Dummy function to mimic initial sampling in an environment. More... | |
| bool | IsTerminal (const State &) const |
| Dummy function to find terminal state. More... | |
To use the dummy environment, one may start by specifying the state and action dimensions.
Eg:
Now the DiscreteActionEnv class can be used as an EnvironmentType in RL methods just as any other mlpack's implementation of gym environments.
|
inline |
Dummy function to mimic initial sampling in an environment.
|
inline |
Dummy function to find terminal state.
| * | (state) The current state. |
Dummy function to mimic sampling in an environment.
| * | (state) The current state. |
| * | (action) The current action. |
| * | (nextState) The next state. |
1.8.13