#[non_exhaustive]pub struct Ucb1Config {
pub exploration_constant: f64,
}Available on crate feature
bandit only.Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exploration_constant: f64Exploration constant c in the UCB formula. Controls the
exploration/exploitation trade-off. Higher values favor exploration.
Must be finite and positive. With the formula used by this type, the
classic UCB1 value is 1.0.
Implementations§
Trait Implementations§
Source§impl Clone for Ucb1Config
impl Clone for Ucb1Config
Source§fn clone(&self) -> Ucb1Config
fn clone(&self) -> Ucb1Config
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ucb1Config
impl Debug for Ucb1Config
Source§impl Default for Ucb1Config
impl Default for Ucb1Config
Source§impl PartialEq for Ucb1Config
impl PartialEq for Ucb1Config
impl StructuralPartialEq for Ucb1Config
Auto Trait Implementations§
impl Freeze for Ucb1Config
impl RefUnwindSafe for Ucb1Config
impl Send for Ucb1Config
impl Sync for Ucb1Config
impl Unpin for Ucb1Config
impl UnsafeUnpin for Ucb1Config
impl UnwindSafe for Ucb1Config
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