Trait bandit::MultiArmedBandit [] [src]

pub trait MultiArmedBandit<A: Hash + Clone + Identifiable> {
    fn select_arm(&self) -> A;
fn update(&mut self, arm: A, reward: f64);
fn save_bandit(&self, path: &Path) -> Result<()>; }

Required Methods

stores the current state of the bandit algorithm in the supplied file. Every implementation has a corresponding load_bandit function.

Implementors