Struct little_sorry::regret_matcher::RegretMatcher
source · pub struct RegretMatcher { /* private fields */ }
Implementations§
source§impl RegretMatcher
impl RegretMatcher
pub fn new(num_experts: usize) -> Result<Self, LittleError>
pub fn new_from_p(p: Vec<f32>) -> Result<Self, LittleError>
pub fn next_action(&self) -> usize
pub fn update_regret( &mut self, reward_array: ArrayView1<'_, f32> ) -> Result<(), LittleError>
pub fn best_weight(&self) -> Vec<f32>
Trait Implementations§
source§impl Clone for RegretMatcher
impl Clone for RegretMatcher
source§fn clone(&self) -> RegretMatcher
fn clone(&self) -> RegretMatcher
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RegretMatcher
impl Send for RegretMatcher
impl Sync for RegretMatcher
impl Unpin for RegretMatcher
impl UnwindSafe for RegretMatcher
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