pub struct Variance {
pub samples: usize,
pub distinct_behaviours: usize,
pub pass_rate: f64,
pub pass_variance: f64,
pub behaviours: Vec<BehaviourCount>,
}Expand description
How much the agent under test varied across the samples of one item.
This is the number samples_per_item exists to produce. It is about the
model; no judge vote contributes to it.
Fields§
§samples: usizeHow many samples ran.
distinct_behaviours: usizeHow many distinct behaviours were observed. One means the model was perfectly repeatable — whether or not it was right.
pass_rate: f64Fraction of samples that satisfied every deterministic expectation.
pass_variance: f64Variance of the pass indicator, p * (1 - p). Zero when every sample
agreed; at its maximum when half of them did.
behaviours: Vec<BehaviourCount>How often each distinct behaviour occurred, most frequent first.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variance
impl<'de> Deserialize<'de> for Variance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Variance
Auto Trait Implementations§
impl Freeze for Variance
impl RefUnwindSafe for Variance
impl Send for Variance
impl Sync for Variance
impl Unpin for Variance
impl UnsafeUnpin for Variance
impl UnwindSafe for Variance
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