what happens in eg mountaincar if the car is not pushed to the top?
berndbischl opened this issue · 1 comments
berndbischl commented
so the question is: what if the episode does not end in a terminal state? is there a max length? what is the reward then?
markusdumke commented
You can set a maximal number of allowed steps per episode in interact
.
library(reinforcelearn)
env = makeEnvironment("mountain.car")
agent = makeAgent("random")
interact(env, agent, n.episodes = 10L, max.steps.per.episode = 50L)