powered by
Table representing the action value function Q.
[integer(1)] Number of states (rows in the value function).
integer(1)
[integer(1)] Number of actions (columns in the value function).
[numeric(1)] Step size (learning rate) for gradient descent update.
numeric(1)
makeValueFunction("table", n.states = NULL, n.actions = 1L, step.size = 0.1, initial.value = NULL)
You can specify the shape of the value table. If omitted the agent will try to configure these automatically from the environment during interaction (therefore the environment needs to have a n.states and n.actions attribute).
n.states
n.actions
# NOT RUN { val = makeValueFunction("table", n.states = 20L, n.actions = 4L) # }
Run the code above in your browser using DataLab