pub enum ComparisonDesign {
ObservedOnly,
ExpectedOutcome,
BaselineRun {
baseline_ref: EntityRef,
},
PairedRuns {
observed_ref: EntityRef,
comparison_ref: EntityRef,
},
PairedScopes {
observed_scope: EvaluationScope,
comparison_scope: EvaluationScope,
},
Ablation {
removed_refs: Vec<EntityRef>,
},
Counterfactual {
redacted_summary: String,
},
RepeatedExperiment {
cohort_ref: EntityRef,
},
}Expand description
How an evaluation should compare an observed outcome.
Variants§
ObservedOnly
Judge the observed run or turn only.
ExpectedOutcome
Judge the observed result against expected criteria only.
BaselineRun
Compare the observed result with a baseline run.
PairedRuns
Compare two recorded runs.
PairedScopes
Compare two durable evaluation scopes without inventing entity refs.
Fields
§
observed_scope: EvaluationScopeObserved scope.
§
comparison_scope: EvaluationScopeComparison scope.
Ablation
Compare the observed result with one or more evidence refs removed.
Counterfactual
Ask for a counterfactual judgment without claiming measurement.
RepeatedExperiment
Compare a cohort of repeated experiments.
Implementations§
Source§impl ComparisonDesign
impl ComparisonDesign
Sourcepub fn supports_measured_confidence(&self) -> bool
pub fn supports_measured_confidence(&self) -> bool
Returns true when this design can support measured confidence if metric deltas are also present.
Sourcepub fn comparison_refs(&self) -> Vec<EntityRef>
pub fn comparison_refs(&self) -> Vec<EntityRef>
Returns comparison refs available for validation and report evidence.
Sourcepub fn has_comparison_evidence(&self) -> bool
pub fn has_comparison_evidence(&self) -> bool
Returns true when this design carries comparison evidence.
Trait Implementations§
Source§impl Clone for ComparisonDesign
impl Clone for ComparisonDesign
Source§fn clone(&self) -> ComparisonDesign
fn clone(&self) -> ComparisonDesign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComparisonDesign
impl Debug for ComparisonDesign
Source§impl Default for ComparisonDesign
impl Default for ComparisonDesign
Source§fn default() -> ComparisonDesign
fn default() -> ComparisonDesign
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComparisonDesign
impl<'de> Deserialize<'de> for ComparisonDesign
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 ComparisonDesign
impl PartialEq for ComparisonDesign
Source§fn eq(&self, other: &ComparisonDesign) -> bool
fn eq(&self, other: &ComparisonDesign) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComparisonDesign
impl Serialize for ComparisonDesign
impl Eq for ComparisonDesign
impl StructuralPartialEq for ComparisonDesign
Auto Trait Implementations§
impl Freeze for ComparisonDesign
impl RefUnwindSafe for ComparisonDesign
impl Send for ComparisonDesign
impl Sync for ComparisonDesign
impl Unpin for ComparisonDesign
impl UnsafeUnpin for ComparisonDesign
impl UnwindSafe for ComparisonDesign
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