pub struct TuneReport {
pub metric_name: String,
pub best_score: f64,
pub best_config: PipelineConfig,
pub trials: Vec<TrialRecord>,
pub failures: Vec<(PipelineConfig, String)>,
}Expand description
Full tuner output.
Fields§
§metric_name: String§best_score: f64§best_config: PipelineConfig§trials: Vec<TrialRecord>§failures: Vec<(PipelineConfig, String)>Trials that failed to build (e.g., too few embeddings, config
combination rejected by a downstream validator). Each entry is
(config, error_message).
Implementations§
Source§impl TuneReport
impl TuneReport
Sourcepub fn ranked_trials(&self) -> Vec<&TrialRecord>
pub fn ranked_trials(&self) -> Vec<&TrialRecord>
Trials ranked by descending score.
Sourcepub fn mean_score(&self) -> f64
pub fn mean_score(&self) -> f64
Mean score across successful trials. Useful for gauging how sensitive the pipeline is to the tuned knobs: a flat landscape means the knobs don’t matter on this corpus.
Trait Implementations§
Source§impl Clone for TuneReport
impl Clone for TuneReport
Source§fn clone(&self) -> TuneReport
fn clone(&self) -> TuneReport
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 TuneReport
impl RefUnwindSafe for TuneReport
impl Send for TuneReport
impl Sync for TuneReport
impl Unpin for TuneReport
impl UnsafeUnpin for TuneReport
impl UnwindSafe for TuneReport
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