Struct ratel_bandit::OptimisticAgent
source · pub struct OptimisticAgent<T> { /* private fields */ }
Expand description
Agent that follows the Optimistic Algorithm.
Always chooses the arm with the highest confidence bound.
Implementations§
Trait Implementations§
source§impl<T: ToPrimitive> Agent<T> for OptimisticAgent<T>
impl<T: ToPrimitive> Agent<T> for OptimisticAgent<T>
source§fn action(&self) -> usize
fn action(&self) -> usize
The action chosen by the Agent. The agent chooses the action with the highest confidence bound.
source§fn current_estimate(&self, arm: usize) -> f64
fn current_estimate(&self, arm: usize) -> f64
The Agent’s current estimate of the value of a Bandit’s arm.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for OptimisticAgent<T>
impl<T> !Send for OptimisticAgent<T>
impl<T> !Sync for OptimisticAgent<T>
impl<T> Unpin for OptimisticAgent<T>where
T: Unpin,
impl<T> !UnwindSafe for OptimisticAgent<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more