pub struct AutoTuningController { /* private fields */ }Expand description
Automatic tuning controller that orchestrates health monitoring and tuning.
Integrates health scoring, gradient tuning, and plateau detection to provide unified training optimization recommendations.
Implementations§
Source§impl AutoTuningController
impl AutoTuningController
Sourcepub fn new(config: AutoTuningConfig, max_steps: u64) -> Self
pub fn new(config: AutoTuningConfig, max_steps: u64) -> Self
Creates a new auto-tuning controller.
§Arguments
config- Configuration for auto-tuning behaviormax_steps- Total number of training steps (for progress percentage)
Sourcepub fn update(
&mut self,
step: u64,
loss: f32,
gradient_norm: f32,
layer_gradients: &[(String, f32, f32)],
confidence: f32,
) -> AutoTuningUpdate
pub fn update( &mut self, step: u64, loss: f32, gradient_norm: f32, layer_gradients: &[(String, f32, f32)], confidence: f32, ) -> AutoTuningUpdate
Updates the controller with new training step data.
§Arguments
step- Current training steploss- Current loss valuegradient_norm- Global gradient normlayer_gradients- Per-layer gradient statistics (name,grad_norm,weight_norm)confidence- Predictor confidence [0, 1]
§Returns
An AutoTuningUpdate containing recommendations and state information.
Sourcepub fn warmup_restart_count(&self) -> usize
pub fn warmup_restart_count(&self) -> usize
Returns the current warmup restart count.
Sourcepub fn last_restart_step(&self) -> Option<u64>
pub fn last_restart_step(&self) -> Option<u64>
Returns the step at which the last warmup restart occurred.
Auto Trait Implementations§
impl Freeze for AutoTuningController
impl RefUnwindSafe for AutoTuningController
impl Send for AutoTuningController
impl Sync for AutoTuningController
impl Unpin for AutoTuningController
impl UnwindSafe for AutoTuningController
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> 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>
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