pub struct OpeReport {
pub n_traces: usize,
pub n_evaluable: usize,
pub coverage: f64,
pub est_cost_per_request: f64,
pub logged_cost_per_request: f64,
pub est_served_failure: Option<f64>,
pub n_correctness_known: usize,
pub escalation_rate: f64,
pub ci_cost: (f64, f64),
pub ci_served_failure: Option<(f64, f64)>,
}Expand description
The result of evaluating a candidate policy against logged traffic.
Fields§
§n_traces: usizeTotal traces in the store for this tenant.
n_evaluable: usizeTraces for which replay used only logged attempts (coverage numerator).
coverage: f64n_evaluable / n_traces (1.0 when n_traces == 0).
est_cost_per_request: f64Mean candidate cost per request, over evaluable traces.
logged_cost_per_request: f64Mean actual (logged) cost per request, over the same evaluable traces.
est_served_failure: Option<f64>Estimated served-failure rate over evaluable traces with known correctness.
None if no evaluable trace has deferred feedback on the same served rung.
n_correctness_known: usizeNumber of evaluable traces where correctness is attributable from deferred feedback.
escalation_rate: f64Fraction of evaluable traces where candidate escalated past the first ladder rung.
ci_cost: (f64, f64)Bootstrap 95% CI (2.5/97.5 pct) for est_cost_per_request.
ci_served_failure: Option<(f64, f64)>Bootstrap 95% CI for est_served_failure. None when est_served_failure is None.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpeReport
impl RefUnwindSafe for OpeReport
impl Send for OpeReport
impl Sync for OpeReport
impl Unpin for OpeReport
impl UnsafeUnpin for OpeReport
impl UnwindSafe for OpeReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more