pub struct LinUcbArmScore {
pub arm: usize,
pub exploitation: f64,
pub exploration_bonus: f64,
pub total_score: f64,
}Available on crate feature
bandit only.Expand description
Explainable score components for one LinUCB arm.
exploration_bonus already includes the
configured alpha multiplier, so
total_score = exploitation + exploration_bonus.
Fields§
§arm: usizeZero-based arm index.
exploitation: f64Estimated reward theta_a^T x.
exploration_bonus: f64Confidence bonus alpha * sqrt(x^T A_a^-1 x).
total_score: f64The exact score used by selection.
Trait Implementations§
Source§impl Clone for LinUcbArmScore
impl Clone for LinUcbArmScore
Source§fn clone(&self) -> LinUcbArmScore
fn clone(&self) -> LinUcbArmScore
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 LinUcbArmScore
impl Debug for LinUcbArmScore
Source§impl PartialEq for LinUcbArmScore
impl PartialEq for LinUcbArmScore
impl StructuralPartialEq for LinUcbArmScore
Auto Trait Implementations§
impl Freeze for LinUcbArmScore
impl RefUnwindSafe for LinUcbArmScore
impl Send for LinUcbArmScore
impl Sync for LinUcbArmScore
impl Unpin for LinUcbArmScore
impl UnsafeUnpin for LinUcbArmScore
impl UnwindSafe for LinUcbArmScore
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