action: Choose taken action according to a given state

Description Usage Arguments Value Examples

View source: R/state_action.R

Description

Choose taken action according to a given state

Usage

1
action(policy, state, ...)

Arguments

policy

nn

state

data.frame or list (usually from the 'state' function)

...

optional : additional parameters for limit_FUN

Value

data.frame of the actions.

Examples

1
2
3
action(neuralnetwork(x+y~a+b, hidden=2),
                 state(neuralnetwork(x+y~a+b, hidden=2)$formula,
                 data.frame(x=2, b=5, a=8, y=4)))

wiper8/AI documentation built on Dec. 23, 2021, 5:15 p.m.