Learn R Programming

reinforcelearn (version 0.2.1)

ValueTable: Value Table

Description

Table representing the action value function Q.

Arguments

n.states

[integer(1)] Number of states (rows in the value function).

n.actions

[integer(1)] Number of actions (columns in the value function).

step.size

[numeric(1)] Step size (learning rate) for gradient descent update.

Usage

makeValueFunction("table", n.states = NULL, n.actions = 1L, step.size = 0.1, initial.value = NULL)

Details

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).

Examples

Run this code
# NOT RUN {
val = makeValueFunction("table", n.states = 20L, n.actions = 4L)
# }

Run the code above in your browser using DataLab