pub struct GateReport {
pub subject: String,
pub split: String,
pub shift_split: ShiftSplit,
pub fields: Vec<FieldMetrics>,
pub macro_ece: MacroMetrics,
pub macro_brier: MacroMetrics,
pub macro_sce: Option<MacroMetrics>,
pub macro_rps: Option<MacroMetrics>,
pub bootstrap_seed: u64,
}Expand description
A gate run’s serializable measurement artifact.
Fields§
§subject: StringName of the arm/subject measured (e.g. a model version, a baseline arm).
split: StringThe split this report measured (e.g. "deterministic", "shift", "zero-shot").
shift_split: ShiftSplitThe shift split in force for this report (fit/eval family designation).
fields: Vec<FieldMetrics>Per-field measurements (the macro rule’s inputs).
macro_ece: MacroMetricsMacro-averaged ECE with CI.
macro_brier: MacroMetricsMacro-averaged Brier with CI.
macro_sce: Option<MacroMetrics>Macro-averaged SCE over score fields with CI, if any score fields were measured.
macro_rps: Option<MacroMetrics>Macro-averaged RPS over score fields with CI, if any score fields were measured.
bootstrap_seed: u64Seed used for all bootstrap CIs in this report.
Implementations§
Source§impl GateReport
impl GateReport
Sourcepub fn assemble(
subject: impl Into<String>,
split: impl Into<String>,
shift_split: ShiftSplit,
fields: Vec<FieldMetrics>,
bootstrap_seed: u64,
) -> Result<Self, MetricError>
pub fn assemble( subject: impl Into<String>, split: impl Into<String>, shift_split: ShiftSplit, fields: Vec<FieldMetrics>, bootstrap_seed: u64, ) -> Result<Self, MetricError>
Assemble a gate report from per-field measurements, applying the protocol’s macro rule and bootstrap CIs. SCE/ACE/RPS macro aggregates cover only the fields that carry them (score fields), keeping the per-primitive split of P1.4 leg c.
§Errors
MetricError::EmptyInput if fields is empty; propagates bootstrap errors.
Trait Implementations§
Source§impl Clone for GateReport
impl Clone for GateReport
Source§fn clone(&self) -> GateReport
fn clone(&self) -> GateReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GateReport
impl Debug for GateReport
Source§impl<'de> Deserialize<'de> for GateReport
impl<'de> Deserialize<'de> for GateReport
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>,
Source§impl PartialEq for GateReport
impl PartialEq for GateReport
Source§fn eq(&self, other: &GateReport) -> bool
fn eq(&self, other: &GateReport) -> bool
self and other values to be equal, and is used by ==.