#[non_exhaustive]pub struct Tolerance {
pub tolerance: f64,
pub test_tolerance: f64,
pub metrics: IndexMap<String, f64>,
}Expand description
How far results may fall below the baseline before it is a regression.
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.tolerance: f64Largest allowed drop of a metric’s mean score (default 0.05: LLM metrics are noisy).
test_tolerance: f64Largest allowed drop of a test’s pass rate across its trials (default 0: a test that passed and now fails is a regression).
metrics: IndexMap<String, f64>Per-metric tolerances, overriding tolerance.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tolerance
impl<'de> Deserialize<'de> for Tolerance
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
impl StructuralPartialEq for Tolerance
Auto Trait Implementations§
impl Forget for Tolerance
impl Freeze for Tolerance
impl Move for Tolerance
impl RefUnwindSafe for Tolerance
impl Send for Tolerance
impl Sync for Tolerance
impl Unpin for Tolerance
impl UnsafeUnpin for Tolerance
impl UnwindSafe for Tolerance
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