A representation of the value function.

makeValueFunction(class, args = list(), ...)

Arguments

class

[character(1)] Class of value function approximation. One of c("table", "neural.network").

args

[list] Optional list of named arguments passed on to the subclass. The arguments in ... take precedence over values in this list. We strongly encourage you to use one or the other to pass arguments to the function but not both.

...

[any] Optional named arguments passed on to the subclass. Alternatively these can be given using the args argument.

Value

[list(name, args)] List with the name and optional args. This list can then be passed onto makeAgent, which will construct the value function accordingly.

Representations

Examples

val = makeValueFunction("table", n.states = 16L, n.actions = 4L) # If the number of states and actions is not supplied, the agent will try # to figure these out from the environment object during interaction. val = makeValueFunction("table")