pub struct HyperparameterTuner { /* private fields */ }Expand description
Complete hyperparameter tuning framework
Implementations§
Source§impl HyperparameterTuner
impl HyperparameterTuner
Sourcepub fn new(
optimizer_type: OptimizerType,
search_space: HyperparameterSpace,
task: OptimizationTask,
max_trials: usize,
) -> Self
pub fn new( optimizer_type: OptimizerType, search_space: HyperparameterSpace, task: OptimizationTask, max_trials: usize, ) -> Self
Create new hyperparameter tuner
Sourcepub fn enable_multi_objective(
&mut self,
objectives: Vec<String>,
weights: Vec<f32>,
)
pub fn enable_multi_objective( &mut self, objectives: Vec<String>, weights: Vec<f32>, )
Enable multi-objective optimization
Sourcepub fn suggest_next(&mut self) -> Option<HyperparameterSample>
pub fn suggest_next(&mut self) -> Option<HyperparameterSample>
Get next hyperparameter configuration to try
Sourcepub fn evaluate_config(
&mut self,
config: HyperparameterSample,
) -> Result<PerformanceMetrics>
pub fn evaluate_config( &mut self, config: HyperparameterSample, ) -> Result<PerformanceMetrics>
Evaluate hyperparameter configuration
Sourcepub fn optimize(&mut self) -> Result<HyperparameterSample>
pub fn optimize(&mut self) -> Result<HyperparameterSample>
Run complete hyperparameter optimization
Sourcepub fn get_history(&self) -> &[(HyperparameterSample, PerformanceMetrics)]
pub fn get_history(&self) -> &[(HyperparameterSample, PerformanceMetrics)]
Get optimization history for analysis
Sourcepub fn get_pareto_front(&self) -> Option<&[HyperparameterSample]>
pub fn get_pareto_front(&self) -> Option<&[HyperparameterSample]>
Get Pareto front for multi-objective optimization
Source§impl HyperparameterTuner
Convenience functions for common optimization tasks
impl HyperparameterTuner
Convenience functions for common optimization tasks
Sourcepub fn optimize_amacp_for_transformers(max_trials: usize) -> Result<AMacPConfig>
pub fn optimize_amacp_for_transformers(max_trials: usize) -> Result<AMacPConfig>
Optimize aMacP hyperparameters for transformer training
Sourcepub fn optimize_novograd_for_llms(max_trials: usize) -> Result<NovoGradConfig>
pub fn optimize_novograd_for_llms(max_trials: usize) -> Result<NovoGradConfig>
Optimize NovoGrad hyperparameters for large language models
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HyperparameterTuner
impl RefUnwindSafe for HyperparameterTuner
impl Send for HyperparameterTuner
impl Sync for HyperparameterTuner
impl Unpin for HyperparameterTuner
impl UnwindSafe for HyperparameterTuner
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