pub struct TrainingDynamicsAnalyzer { /* private fields */ }Expand description
Training dynamics analyzer for monitoring and analyzing training behavior.
Implementations§
Source§impl TrainingDynamicsAnalyzer
impl TrainingDynamicsAnalyzer
Sourcepub fn with_config(config: TrainingAnalysisConfig) -> Self
pub fn with_config(config: TrainingAnalysisConfig) -> Self
Create a new analyzer with custom configuration.
Sourcepub fn add_metrics(&mut self, metrics: ModelPerformanceMetrics)
pub fn add_metrics(&mut self, metrics: ModelPerformanceMetrics)
Add new training metrics for analysis.
Sourcepub fn record_training_dynamics(&mut self, _dynamics: TrainingDynamics)
pub fn record_training_dynamics(&mut self, _dynamics: TrainingDynamics)
Record training dynamics information.
Sourcepub fn analyze_training_dynamics(&self) -> TrainingDynamics
pub fn analyze_training_dynamics(&self) -> TrainingDynamics
Analyze current training dynamics.
Sourcepub fn detect_convergence_status(&self) -> ConvergenceStatus
pub fn detect_convergence_status(&self) -> ConvergenceStatus
Detect current convergence status.
Sourcepub fn assess_training_stability(&self) -> TrainingStability
pub fn assess_training_stability(&self) -> TrainingStability
Assess training stability.
Sourcepub fn calculate_learning_efficiency(&self) -> f64
pub fn calculate_learning_efficiency(&self) -> f64
Calculate learning efficiency score.
Sourcepub fn detect_overfitting_indicators(&self) -> Vec<OverfittingIndicator>
pub fn detect_overfitting_indicators(&self) -> Vec<OverfittingIndicator>
Detect overfitting indicators from the recorded training metrics.
ModelPerformanceMetrics carries no validation split, so the
validation-flavoured variants of OverfittingIndicator
(TrainValidationGap, ValidationLossIncreasing,
HighVarianceInValidation) are never raised here – they exist for
callers that really do hold validation data. The two signals this can
honestly report are a collapsed training loss and high variance of the
training loss.
This previously pushed PerfectTrainingAccuracy whenever the mean
training LOSS fell below 0.01 (loss is not accuracy) and
HighVarianceInValidation from the variance of the TRAINING loss (there
is no validation series to take a variance of).
Sourcepub fn detect_underfitting_indicators(&self) -> Vec<UnderfittingIndicator>
pub fn detect_underfitting_indicators(&self) -> Vec<UnderfittingIndicator>
Detect underfitting indicators.
Sourcepub fn detect_plateau(&self) -> Option<PlateauInfo>
pub fn detect_plateau(&self) -> Option<PlateauInfo>
Detect plateau in training.
Sourcepub fn generate_training_recommendations(&self) -> Vec<TrainingRecommendation>
pub fn generate_training_recommendations(&self) -> Vec<TrainingRecommendation>
Generate training recommendations based on current dynamics.
Sourcepub fn get_training_state(&self) -> &TrainingState
pub fn get_training_state(&self) -> &TrainingState
Get current training state information.
Sourcepub async fn generate_report(&self) -> Result<TrainingDynamicsReport>
pub async fn generate_report(&self) -> Result<TrainingDynamicsReport>
Generate comprehensive training dynamics report.
Trait Implementations§
Source§impl Debug for TrainingDynamicsAnalyzer
impl Debug for TrainingDynamicsAnalyzer
Auto Trait Implementations§
impl Freeze for TrainingDynamicsAnalyzer
impl RefUnwindSafe for TrainingDynamicsAnalyzer
impl Send for TrainingDynamicsAnalyzer
impl Sync for TrainingDynamicsAnalyzer
impl Unpin for TrainingDynamicsAnalyzer
impl UnsafeUnpin for TrainingDynamicsAnalyzer
impl UnwindSafe for TrainingDynamicsAnalyzer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.