pub struct CalibrationBin {
pub bin_lower: f64,
pub bin_upper: f64,
pub avg_confidence: f64,
pub avg_accuracy: f64,
pub count: usize,
}Expand description
Single bin in a calibration analysis.
Each bin covers an equal-width interval of the [0, 1] confidence range.
After bucketing detections by confidence, avg_confidence and
avg_accuracy are the means within the bin.
Fields§
§bin_lower: f64Lower bound of the confidence interval (inclusive).
bin_upper: f64Upper bound of the confidence interval (exclusive, except last bin).
avg_confidence: f64Mean predicted confidence of detections in this bin.
avg_accuracy: f64Fraction of detections in this bin that are true positives.
count: usizeNumber of (non-ignored) detections in this bin.
Trait Implementations§
Source§impl Clone for CalibrationBin
impl Clone for CalibrationBin
Source§fn clone(&self) -> CalibrationBin
fn clone(&self) -> CalibrationBin
Returns a duplicate of the value. Read more
1.0.0 · 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 CalibrationBin
impl Debug for CalibrationBin
Auto Trait Implementations§
impl Freeze for CalibrationBin
impl RefUnwindSafe for CalibrationBin
impl Send for CalibrationBin
impl Sync for CalibrationBin
impl Unpin for CalibrationBin
impl UnsafeUnpin for CalibrationBin
impl UnwindSafe for CalibrationBin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more