pub struct RoutingCalibration {
pub temperature: f32,
pub novelty_theta: f32,
pub samples: usize,
pub target_fpr: f32,
}Expand description
Router calibration (see SelectionDescriptor): the recipe of the
cortiq-router service. Confidence is softmax(−err/T); novelty is
0.5·σ(z_top) + 0.25·1/(1+8·margin) + 0.25·(1−confidence); an input is
novel iff its novelty exceeds θ, the 1−fpr quantile of the in-scope
held-out novelty scores.
Fields§
§temperature: f32§novelty_theta: f32§samples: usizeheld-out samples the calibration used
target_fpr: f32target in-scope false-positive rate of the novelty flag
Trait Implementations§
Source§impl Clone for RoutingCalibration
impl Clone for RoutingCalibration
Source§impl Debug for RoutingCalibration
impl Debug for RoutingCalibration
Source§impl<'de> Deserialize<'de> for RoutingCalibration
impl<'de> Deserialize<'de> for RoutingCalibration
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 Freeze for RoutingCalibration
impl RefUnwindSafe for RoutingCalibration
impl Send for RoutingCalibration
impl Sync for RoutingCalibration
impl Unpin for RoutingCalibration
impl UnsafeUnpin for RoutingCalibration
impl UnwindSafe for RoutingCalibration
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