pub struct ScoringResult {
pub primary_scores: Array1<f64>,
pub additional_scores: HashMap<String, Array1<f64>>,
pub confidence_interval: Option<(f64, f64)>,
pub additional_confidence_intervals: HashMap<String, (f64, f64)>,
pub mean_scores: HashMap<String, f64>,
pub std_scores: HashMap<String, f64>,
}Expand description
Scoring result with confidence intervals and multiple metrics
Fields§
§primary_scores: Array1<f64>Primary metric scores
additional_scores: HashMap<String, Array1<f64>>Additional metric scores
confidence_interval: Option<(f64, f64)>Confidence intervals for primary metric
additional_confidence_intervals: HashMap<String, (f64, f64)>Confidence intervals for additional metrics
mean_scores: HashMap<String, f64>Mean scores
std_scores: HashMap<String, f64>Standard deviations
Implementations§
Source§impl ScoringResult
impl ScoringResult
Sourcepub fn primary_mean(&self) -> f64
pub fn primary_mean(&self) -> f64
Get the primary metric mean score
Sourcepub fn mean_score(&self, metric: &str) -> Option<f64>
pub fn mean_score(&self, metric: &str) -> Option<f64>
Get mean score for a specific metric
Sourcepub fn all_mean_scores(&self) -> &HashMap<String, f64>
pub fn all_mean_scores(&self) -> &HashMap<String, f64>
Get all mean scores
Trait Implementations§
Source§impl Clone for ScoringResult
impl Clone for ScoringResult
Source§fn clone(&self) -> ScoringResult
fn clone(&self) -> ScoringResult
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 moreAuto Trait Implementations§
impl Freeze for ScoringResult
impl RefUnwindSafe for ScoringResult
impl Send for ScoringResult
impl Sync for ScoringResult
impl Unpin for ScoringResult
impl UnwindSafe for ScoringResult
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> 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