pub struct DuelChoice {
pub a: usize,
pub b: usize,
pub info_gain: f64,
pub random_check: bool,
pub method: &'static str,
}Expand description
A chosen duel, with the reasoning that produced it.
Fields§
§a: usizePool index of candidate A.
b: usizePool index of candidate B.
info_gain: f64Expected information gain about θ, in nats (0 for random pairs).
Bounded above by ln 2 ≈ 0.693, the entropy of a coin flip.
random_check: boolTrue when this pair was drawn uniformly at random as a calibration check rather than chosen by the acquisition function.
method: &'static str"random" (no posterior), "check", or "bald".
Trait Implementations§
Source§impl Clone for DuelChoice
impl Clone for DuelChoice
Source§fn clone(&self) -> DuelChoice
fn clone(&self) -> DuelChoice
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 DuelChoice
impl Debug for DuelChoice
Source§impl Deserialize<'static> for DuelChoice
impl Deserialize<'static> for DuelChoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DuelChoice
impl Serialize for DuelChoice
impl Copy for DuelChoice
Auto Trait Implementations§
impl Freeze for DuelChoice
impl RefUnwindSafe for DuelChoice
impl Send for DuelChoice
impl Sync for DuelChoice
impl Unpin for DuelChoice
impl UnsafeUnpin for DuelChoice
impl UnwindSafe for DuelChoice
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