pub struct CalibrationResult {
pub status: CalibrationStatus,
pub question_id: String,
pub target_accuracy: f64,
pub sample_size: u64,
pub threshold: Option<f64>,
pub accepted_count: u64,
pub coverage: f64,
pub accepted_accuracy: Option<f64>,
pub wilson_lower: Option<f64>,
pub wilson_upper: Option<f64>,
}Expand description
Per-question calibration suggestion, never applied to production configuration.
Fields§
§status: CalibrationStatusStatus explaining whether a recommendation is available.
question_id: StringQuestion being calibrated.
target_accuracy: f64Requested lower-bound accuracy target.
sample_size: u64Labeled cases in the selected group.
threshold: Option<f64>Suggested inclusive cutoff, if supported.
accepted_count: u64Accepted cases under the suggested cutoff.
coverage: f64Coverage among all labeled cases.
accepted_accuracy: Option<f64>Correct share among accepted cases.
wilson_lower: Option<f64>Lower Wilson 95% bound, if a threshold was selected.
wilson_upper: Option<f64>Upper Wilson 95% bound, if a threshold was selected.
Trait Implementations§
Source§impl Clone for CalibrationResult
impl Clone for CalibrationResult
Source§impl Debug for CalibrationResult
impl Debug for CalibrationResult
Source§impl<'de> Deserialize<'de> for CalibrationResult
impl<'de> Deserialize<'de> for CalibrationResult
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
Auto Trait Implementations§
impl Forget for CalibrationResult
impl Freeze for CalibrationResult
impl Move for CalibrationResult
impl RefUnwindSafe for CalibrationResult
impl Send for CalibrationResult
impl Sync for CalibrationResult
impl Unpin for CalibrationResult
impl UnsafeUnpin for CalibrationResult
impl UnwindSafe for CalibrationResult
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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