pub struct AdvancedMLDebugger { /* private fields */ }Expand description
Advanced ML debugger
Implementations§
Source§impl AdvancedMLDebugger
impl AdvancedMLDebugger
Sourcepub fn new(config: AdvancedMLDebuggingConfig) -> Self
pub fn new(config: AdvancedMLDebuggingConfig) -> Self
Create a new advanced ML debugger
Sourcepub async fn analyze_layer_wise_learning_rates(
&mut self,
layer_gradients: &HashMap<String, ArrayD<f32>>,
layer_weights: &HashMap<String, ArrayD<f32>>,
current_lr: f64,
loss_history: &[f64],
) -> Result<LayerWiseLRAnalysisResult>
pub async fn analyze_layer_wise_learning_rates( &mut self, layer_gradients: &HashMap<String, ArrayD<f32>>, layer_weights: &HashMap<String, ArrayD<f32>>, current_lr: f64, loss_history: &[f64], ) -> Result<LayerWiseLRAnalysisResult>
Perform layer-wise learning rate analysis
Sourcepub async fn analyze_model_sensitivity(
&mut self,
model_params: &HashMap<String, f64>,
performance_metrics: &[f64],
architecture_config: &HashMap<String, f64>,
) -> Result<ModelSensitivityAnalysisResult>
pub async fn analyze_model_sensitivity( &mut self, model_params: &HashMap<String, f64>, performance_metrics: &[f64], architecture_config: &HashMap<String, f64>, ) -> Result<ModelSensitivityAnalysisResult>
Perform comprehensive model sensitivity analysis.
Always returns a structured error. A sensitivity analysis measures
how performance responds when a factor is varied, which requires
re-evaluating the model at perturbed hyperparameters, architectures,
dataset sizes and seeds. This method receives only the CURRENT parameter
values plus a flat &[f64] of already-observed metrics – one point per
factor – so no response curve, optimal range, stability region or
robustness score is derivable from its inputs.
It used to return a fully populated ModelSensitivityAnalysisResult
assembled from hardcoded constants: sensitivity_score: 0.8,
optimal_range: (0.0001, 0.01), current_size: 10000,
most_important_features: ["feature_1", "feature_2"], and a
surprising_findings string, none of which looked at model_params,
performance_metrics or architecture_config. The five helpers that
produced those constants have been deleted.
The result types remain public so a caller that really does run a parameter sweep can construct and share one.
Sourcepub async fn generate_report(&self) -> Result<AdvancedMLDebuggingReport>
pub async fn generate_report(&self) -> Result<AdvancedMLDebuggingReport>
Generate comprehensive advanced ML debugging report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedMLDebugger
impl RefUnwindSafe for AdvancedMLDebugger
impl Send for AdvancedMLDebugger
impl Sync for AdvancedMLDebugger
impl Unpin for AdvancedMLDebugger
impl UnsafeUnpin for AdvancedMLDebugger
impl UnwindSafe for AdvancedMLDebugger
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.