pub struct Thresholds {
pub calibration: Calibration,
pub min_confidence: f32,
pub min_margin: f32,
}Expand description
When the cheap adapter’s answer is good enough to serve: at least
min_confidence and a top-two margin of at least min_margin, under
the Calibration these numbers were tuned for.
Fields§
§calibration: Calibration§min_confidence: f32§min_margin: f32Trait Implementations§
Source§impl Clone for Thresholds
impl Clone for Thresholds
impl Copy for Thresholds
Source§impl Debug for Thresholds
impl Debug for Thresholds
Source§impl PartialEq for Thresholds
impl PartialEq for Thresholds
impl StructuralPartialEq for Thresholds
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnsafeUnpin for Thresholds
impl UnwindSafe for Thresholds
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