#[non_exhaustive]pub struct LinUcbConfig {
pub alpha: f64,
pub arm_count: usize,
pub feature_count: usize,
}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.alpha: f64Exploration parameter alpha. Controls the exploration/exploitation
trade-off. Higher values favor exploration. Must be finite and positive.
The original paper suggests alpha = 1.0 as a reasonable default.
arm_count: usizeNumber of arms (actions). Must be greater than zero.
feature_count: usizeNumber of features in the context vector. Must be greater than zero.
Implementations§
Trait Implementations§
Source§impl Clone for LinUcbConfig
impl Clone for LinUcbConfig
Source§fn clone(&self) -> LinUcbConfig
fn clone(&self) -> LinUcbConfig
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 LinUcbConfig
impl Debug for LinUcbConfig
Source§impl Default for LinUcbConfig
impl Default for LinUcbConfig
Source§impl PartialEq for LinUcbConfig
impl PartialEq for LinUcbConfig
impl StructuralPartialEq for LinUcbConfig
Auto Trait Implementations§
impl Freeze for LinUcbConfig
impl RefUnwindSafe for LinUcbConfig
impl Send for LinUcbConfig
impl Sync for LinUcbConfig
impl Unpin for LinUcbConfig
impl UnsafeUnpin for LinUcbConfig
impl UnwindSafe for LinUcbConfig
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