pub struct HeldOutCalibrationGate {
pub max_ece_upper: f64,
pub max_brier_upper: f64,
pub max_log_loss_upper: f64,
pub min_transferred_f1: f64,
}Expand description
Regression gate applied to held-out metrics. Calibration thresholds use the upper bootstrap bound, so passing means the configured maximum remains satisfied at the requested confidence level. The transferred decision threshold is gated on held-out F1 without selecting it on held-out labels.
Fields§
§max_ece_upper: f64§max_brier_upper: f64§max_log_loss_upper: f64§min_transferred_f1: f64Implementations§
Source§impl HeldOutCalibrationGate
impl HeldOutCalibrationGate
pub fn check( self, calibration: &HeldOutCalibrationReport, threshold_transfer: &ThresholdTransferReport, ) -> ScoringResult<()>
Trait Implementations§
Source§impl Clone for HeldOutCalibrationGate
impl Clone for HeldOutCalibrationGate
Source§fn clone(&self) -> HeldOutCalibrationGate
fn clone(&self) -> HeldOutCalibrationGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeldOutCalibrationGate
Source§impl Debug for HeldOutCalibrationGate
impl Debug for HeldOutCalibrationGate
Source§impl PartialEq for HeldOutCalibrationGate
impl PartialEq for HeldOutCalibrationGate
impl StructuralPartialEq for HeldOutCalibrationGate
Auto Trait Implementations§
impl Freeze for HeldOutCalibrationGate
impl RefUnwindSafe for HeldOutCalibrationGate
impl Send for HeldOutCalibrationGate
impl Sync for HeldOutCalibrationGate
impl Unpin for HeldOutCalibrationGate
impl UnsafeUnpin for HeldOutCalibrationGate
impl UnwindSafe for HeldOutCalibrationGate
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