pub struct EvaluationRecord {
pub parameters: ParameterValue,
pub score: f64,
pub timestamp: u64,
pub cv_scores: Option<Vec<f64>>,
pub score_std: Option<f64>,
pub duration_ms: Option<u64>,
pub metadata: HashMap<String, String>,
}Expand description
Historical evaluation record
Fields§
§parameters: ParameterValueParameter configuration
score: f64Score achieved
timestamp: u64Timestamp of evaluation
cv_scores: Option<Vec<f64>>Cross-validation fold scores (if available)
score_std: Option<f64>Standard deviation of score
duration_ms: Option<u64>Duration of evaluation in milliseconds
metadata: HashMap<String, String>Additional metadata
Implementations§
Source§impl EvaluationRecord
impl EvaluationRecord
pub fn new(parameters: ParameterValue, score: f64) -> Self
pub fn with_cv_scores(self, cv_scores: Vec<f64>) -> Self
pub fn with_duration(self, duration_ms: u64) -> Self
pub fn with_metadata(self, key: String, value: String) -> Self
Sourcepub fn age_weight(&self, decay_factor: f64, min_weight: f64) -> f64
pub fn age_weight(&self, decay_factor: f64, min_weight: f64) -> f64
Calculate age-based weight
Trait Implementations§
Source§impl Clone for EvaluationRecord
impl Clone for EvaluationRecord
Source§fn clone(&self) -> EvaluationRecord
fn clone(&self) -> EvaluationRecord
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 EvaluationRecord
impl Debug for EvaluationRecord
Source§impl<'de> Deserialize<'de> for EvaluationRecord
impl<'de> Deserialize<'de> for EvaluationRecord
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
Auto Trait Implementations§
impl Freeze for EvaluationRecord
impl RefUnwindSafe for EvaluationRecord
impl Send for EvaluationRecord
impl Sync for EvaluationRecord
impl Unpin for EvaluationRecord
impl UnwindSafe for EvaluationRecord
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