#[non_exhaustive]pub struct ErrorBudget {
pub alpha: f64,
pub guardrail_alpha: f64,
}Expand description
The fixed type I error budget of an experiment (spec 3.5 §7.12).
alpha bounds the probability that the primary test ever declares a difference when there
is none, however many looks are taken. guardrail_alpha bounds the probability that any
guardrail is ever breached when the variant is within every tolerance; it is split equally
across the guardrails.
§Example
use adk_eval::experiments::ErrorBudget;
let budget = ErrorBudget::new(0.05, 0.10);
assert_eq!(budget, ErrorBudget::default());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.alpha: f64The primary metric’s two-sided type I error budget.
guardrail_alpha: f64The type I error budget shared by all guardrails.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorBudget
impl Clone for ErrorBudget
impl Copy for ErrorBudget
Source§impl Debug for ErrorBudget
impl Debug for ErrorBudget
Source§impl Default for ErrorBudget
impl Default for ErrorBudget
Source§impl<'de> Deserialize<'de> for ErrorBudget
impl<'de> Deserialize<'de> for ErrorBudget
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 ErrorBudget
impl PartialEq for ErrorBudget
Source§impl Serialize for ErrorBudget
impl Serialize for ErrorBudget
impl StructuralPartialEq for ErrorBudget
Auto Trait Implementations§
impl Forget for ErrorBudget
impl Freeze for ErrorBudget
impl Move for ErrorBudget
impl RefUnwindSafe for ErrorBudget
impl Send for ErrorBudget
impl Sync for ErrorBudget
impl Unpin for ErrorBudget
impl UnsafeUnpin for ErrorBudget
impl UnwindSafe for ErrorBudget
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