Struct Mabc
pub struct Mabc { /* private fields */ }Expand description
The ULTHO-style clustered UCB policy: a sliding-window UCB1 bandit over each cluster’s discrete candidate values.
Build one with Mabc::new_with_ucb and hand it to
crate::online::OnlineTunerBuilder::policy. The exact selection rule is
pinned by the module’s exact golden.
Implementations§
§impl Mabc
impl Mabc
pub const fn new_with_ucb(window: u32) -> Self
pub const fn new_with_ucb(window: u32) -> Self
A clustered UCB policy with the given sliding-window length (rounds) and
the default exploration constant (DEFAULT_EXPLORATION).
pub const fn new() -> Self
pub const fn new() -> Self
A clustered UCB policy with the default window (DEFAULT_WINDOW).
pub const fn exploration(self, c: f64) -> Self
pub const fn exploration(self, c: f64) -> Self
Overrides the UCB exploration constant c (default DEFAULT_EXPLORATION).
Larger explores more; 0 is pure exploitation of the windowed means.
Trait Implementations§
impl Copy for Mabc
impl StructuralPartialEq for Mabc
Auto Trait Implementations§
impl Freeze for Mabc
impl RefUnwindSafe for Mabc
impl Send for Mabc
impl Sync for Mabc
impl Unpin for Mabc
impl UnsafeUnpin for Mabc
impl UnwindSafe for Mabc
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