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
fn select_arm(&self) -> A
fn update(&mut self, arm: A, reward: f64)
fn save_bandit(&self, path: &Path) -> Result<()>
stores the current state of the bandit algorithm in the supplied file. Every implementation has a corresponding load_bandit function.
Implementors
impl<A: Clone + Hash + Eq + Identifiable> MultiArmedBandit<A> for AnnealingSoftmax<A>