Description Usage Arguments Value See Also Examples
EpsilonGreedy() is a utility function that performs "epsilon-greedy" actions.
| 1 | EpsilonGreedy(values, epsilon = 0.1)
 | 
| values | a numeric vector or matrix for values of actions. For numeric vector, it is values of all actions; for numeric matrix, each row is a set of values. | 
| epsilon | a numeric value between 0 and 1. It is the probability of choosing uniformly random actions instead of greedy actions. | 
an integer vector for chosen action indexes
Other value-based action functions: 
Gibbs(),
Greedy(),
Random()
| 1 2 | EpsilonGreedy(c(2, 1, 3, 7, 5))
EpsilonGreedy(matrix(c(1, 2, 2, 1), 2, 2, byrow = TRUE), epsilon = 0.2)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.