makeValueFunction: Value Function Representation

View source: R/valuefunction.R

makeValueFunctionR Documentation

Value Function Representation

Description

A representation of the value function.

Usage

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

  • ValueTable

  • ValueNetwork

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

markdumke/reinforcelearn documentation built on Nov. 17, 2022, 12:53 a.m.