Description Usage Arguments Value References Examples
Apply a choice rule (action selection rule) to probabilistic predictions.
1 2 3 4 5 6 |
x |
A numeric vector or matrix with probabilistic predictions for actions. If |
type |
The choice rule (action selection rule), can be one of |
tolerance |
**optional** A small number. Usually all rows in the predictions need to sum up to 1 if predictions contain more than 1 column. A |
... |
Other parameters to be passed to the choice rule methods: |
A matrix holding the probability to select each action in the columns.
See the individual functions.
1 2 3 4 5 6 7 8 9 10 11 12 | # Some predictions
predictions <- cbind(A = c(.1,.5,.4), B = c(.3,.1,.4), C = c(.6, .4, .2))
# Apply various choice rules
choicerule(predictions, "luce")
choicerule(predictions, "argmax")
choicerule(predictions, "epsilon", eps = .2)
# Some binary predictions
binaryPredictions <- c(.22, .5, .73)
# Apply a choice rule
choicerule(binaryPredictions, "softmax", tau = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.