knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(bandits)

Use the multibandit function to create an instance of our multibandit function.

bandit_machine <- multibandit(10)

This function has 10 arms that have different distributions of reward associated with each arm.

bandit_machine(2, return_metrics = T)
bandit_machine(3, return_metrics = T)


joepeskett/bandits documentation built on Dec. 28, 2019, 7:04 p.m.