#[non_exhaustive]pub struct Calibration {
pub unknown: UnknownPolicy,
pub threshold: Option<f64>,
pub min_kappa: Option<f64>,
pub min_tpr: Option<f64>,
pub min_tnr: Option<f64>,
}Expand description
Judge calibration settings (calibration: in the eval file).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unknown: UnknownPolicyunknown verdicts: exclude (default: counted apart, outside the
confusion matrix) or fail (counted as the judge saying fail).
threshold: Option<f64>Score at which a judge that returns only a score says pass (default 0.5).
min_kappa: Option<f64>Gate: minimum Cohen’s kappa.
min_tpr: Option<f64>Gate: minimum true positive rate.
min_tnr: Option<f64>Gate: minimum true negative rate.
Trait Implementations§
Source§impl Clone for Calibration
impl Clone for Calibration
Source§impl Debug for Calibration
impl Debug for Calibration
Source§impl Default for Calibration
impl Default for Calibration
Source§impl<'de> Deserialize<'de> for Calibration
impl<'de> Deserialize<'de> for Calibration
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
Source§impl PartialEq for Calibration
impl PartialEq for Calibration
impl StructuralPartialEq for Calibration
Auto Trait Implementations§
impl Forget for Calibration
impl Freeze for Calibration
impl Move for Calibration
impl RefUnwindSafe for Calibration
impl Send for Calibration
impl Sync for Calibration
impl Unpin for Calibration
impl UnsafeUnpin for Calibration
impl UnwindSafe for Calibration
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