pub trait Tunable: StreamingLearner {
// Required methods
fn diagnostics_array(&self) -> [f64; 5];
fn adjust_config(&mut self, lr_multiplier: f64, lambda_delta: f64);
}Available on crate feature
alloc only.Expand description
Models that expose diagnostics and accept smooth hyperparameter adjustments.
Implemented by models touched by AutoML components: SGBT, DistributionalSGBT, RLS, KAN, TTT, ESN, mGRADE, and any model with tunable LR or regularization.
§Object Safety
This trait is object-safe. Box<dyn Tunable> is a legal type.
Required Methods§
Sourcefn diagnostics_array(&self) -> [f64; 5]
fn diagnostics_array(&self) -> [f64; 5]
Raw diagnostic signals for adaptive tuning.
Returns [residual_alignment, reg_sensitivity, depth_sufficiency, effective_dof, uncertainty]. These five signals drive the diagnostic
adaptor in the AutoML pipeline.
Sourcefn adjust_config(&mut self, lr_multiplier: f64, lambda_delta: f64)
fn adjust_config(&mut self, lr_multiplier: f64, lambda_delta: f64)
Apply smooth learning rate and regularization adjustments.
lr_multiplier– scales the current learning rate (1.0 = no change, 0.99 = 1% decrease, 1.01 = 1% increase).lambda_delta– additive delta applied to the L2 regularization parameter (0.0 = no change, positive = increase regularization).