interact | R Documentation |
Run interaction between agent and environment for specified number of steps or episodes.
interact(env, agent, n.steps = Inf, n.episodes = Inf, max.steps.per.episode = Inf, learn = TRUE, visualize = FALSE)
env |
[ |
agent |
[ |
n.steps |
[ |
n.episodes |
[ |
max.steps.per.episode |
[ |
learn |
[ |
visualize |
[ |
[list
] Return and number of steps per episode.
env = makeEnvironment("windy.gridworld") agent = makeAgent("softmax", "table", "qlearning") interact(env, agent, n.episodes = 10L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.