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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.