| MountainCar | R Documentation |
The classical mountain car problem for reinforcement learning.
... |
[ |
An object of class R6ClassGenerator of length 24.
The classical Mountain Car task the action is one of 0, 1, 2, in the continuous version the action is in [-1, 1].
makeEnvironment("MountainCar", ...)
makeEnvironment("MountainCarContinuous", ...)
$step(action)
Take action in environment.
Returns a list with state, reward, done.
$reset()
Resets the done flag of the environment and returns an initial state.
Useful when starting a new episode.
$visualize()
Visualizes the environment (if there is a visualization function).
env = makeEnvironment("mountain.car")
env$reset()
env$step(1L)
env = makeEnvironment("mountain.car.continuous")
env$reset()
env$step(0.62)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.