pub struct ConsistencyMetrics {
pub answer_agreement: f64,
pub reasoning_agreement: f64,
pub confidence_variance: f64,
pub num_runs: usize,
}Expand description
Self-consistency metrics
Fields§
§answer_agreement: f64Same answer across multiple runs (0.0-1.0)
reasoning_agreement: f64Same reasoning path across runs (0.0-1.0)
confidence_variance: f64Confidence variance (lower is better)
num_runs: usizeNumber of runs used to calculate
Implementations§
Source§impl ConsistencyMetrics
impl ConsistencyMetrics
Sourcepub fn from_runs(runs: &[Vec<QuestionResult>]) -> Self
pub fn from_runs(runs: &[Vec<QuestionResult>]) -> Self
Calculate from multiple runs of same questions
Trait Implementations§
Source§impl Clone for ConsistencyMetrics
impl Clone for ConsistencyMetrics
Source§fn clone(&self) -> ConsistencyMetrics
fn clone(&self) -> ConsistencyMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsistencyMetrics
impl Debug for ConsistencyMetrics
Source§impl Default for ConsistencyMetrics
impl Default for ConsistencyMetrics
Source§fn default() -> ConsistencyMetrics
fn default() -> ConsistencyMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConsistencyMetrics
impl RefUnwindSafe for ConsistencyMetrics
impl Send for ConsistencyMetrics
impl Sync for ConsistencyMetrics
impl Unpin for ConsistencyMetrics
impl UnwindSafe for ConsistencyMetrics
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
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>
Converts
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>
Converts
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