cr_epsilon: Apply Epsilon greedy choice rule

Description Usage Arguments Value References Examples

View source: R/cr_epsilon.R

Description

Apply Epsilon greedy choice rule

Usage

1
cr_epsilon(x, eps)

Arguments

x

A numeric vector or matrix with probabilistic predictions for actions. If x is a vector, binary actions are assumed. If x is a matrix, column 1 holds predictions for action 1, column 2 for action 2, etc.

eps

A number between 0 an 1: the probability to make random choices across all options.

Value

A matrix holding the probability to select each action in the columns

References

Sutton, R. S., & Barto, A. G. (1998). Reinforcement learning: An introduction. Cambridge, MA: MIT Press

Examples

1
# No examples

JanaJarecki/cognitiveutils documentation built on Sept. 9, 2020, 9:11 a.m.