rl_define_policy: Define the Action-Selection Policy for an RL Agent

View source: R/func-rl_policies.R

rl_define_policyR Documentation

Define the Action-Selection Policy for an RL Agent

Description

Define the Action-Selection Policy for an RL Agent

Usage

rl_define_policy(policy, ...)

Arguments

policy

What policy should a decision be made under? Currently supported are softmax, greedy, and epsilon-greedy.

...

Additional arguments passed to or from specific methods, such as tau when policy = "softmax" and epsilon when policy = "epsilonGreedy".

Value

The agent object with modified policy structure.

Examples


# Example arguments include:

# (policy = "softmax", tau = 7)

# (policy = "epsilonGreedy", epsilon = 0.4)

# (policy = "greedy")

jdtrat/rlsims documentation built on March 26, 2022, 6:17 p.m.