pub struct QuestionStats { /* private fields */ }Expand description
Counts and probabilities for the labeled subset of one question.
Implementations§
Source§impl QuestionStats
impl QuestionStats
Sourcepub fn accuracy(&self) -> f64
pub fn accuracy(&self) -> f64
Correct divided by all labeled cases; zero for an empty denominator.
Sourcepub fn accuracy_when_answered(&self) -> f64
pub fn accuracy_when_answered(&self) -> f64
Correct divided by answered labeled cases; zero for an empty denominator.
Sourcepub fn mean_p_correct(&self) -> f64
pub fn mean_p_correct(&self) -> f64
Mean probability assigned to the label, including abstentions.
Trait Implementations§
Source§impl Clone for QuestionStats
impl Clone for QuestionStats
Source§impl Debug for QuestionStats
impl Debug for QuestionStats
Auto Trait Implementations§
impl Freeze for QuestionStats
impl RefUnwindSafe for QuestionStats
impl Send for QuestionStats
impl Sync for QuestionStats
impl Unpin for QuestionStats
impl UnsafeUnpin for QuestionStats
impl UnwindSafe for QuestionStats
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