makeValueFunction: Value Function Representation

Description Usage Arguments Value Representations Examples

Description

A representation of the value function.

Usage

1

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

1
2
3
4
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")

markusdumke/reinforcelearn documentation built on May 31, 2019, 8:48 p.m.