pub struct AutoMLOptimizer { /* private fields */ }Expand description
AutoML pipeline optimizer for automated model selection and hyperparameter tuning
Implementations§
Source§impl AutoMLOptimizer
impl AutoMLOptimizer
Sourcepub fn new(config: AutoMLConfig) -> SklResult<Self>
pub fn new(config: AutoMLConfig) -> SklResult<Self>
Create a new AutoML optimizer
Sourcepub fn search_space(self, search_space: SearchSpace) -> Self
pub fn search_space(self, search_space: SearchSpace) -> Self
Set the search space for optimization
Sourcepub fn optimize(
&mut self,
x_train: &ArrayView2<'_, Float>,
y_train: &ArrayView1<'_, Float>,
x_val: Option<&ArrayView2<'_, Float>>,
y_val: Option<&ArrayView1<'_, Float>>,
) -> SklResult<FluentPipelineBuilder>
pub fn optimize( &mut self, x_train: &ArrayView2<'_, Float>, y_train: &ArrayView1<'_, Float>, x_val: Option<&ArrayView2<'_, Float>>, y_val: Option<&ArrayView1<'_, Float>>, ) -> SklResult<FluentPipelineBuilder>
Run automated optimization
Sourcepub fn get_results(&self) -> &OptimizationHistory
pub fn get_results(&self) -> &OptimizationHistory
Get optimization results
Sourcepub fn get_best_trial(&self) -> Option<&TrialResult>
pub fn get_best_trial(&self) -> Option<&TrialResult>
Get best trial
Sourcepub fn generate_report(&self) -> OptimizationReport
pub fn generate_report(&self) -> OptimizationReport
Generate optimization report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoMLOptimizer
impl RefUnwindSafe for AutoMLOptimizer
impl Send for AutoMLOptimizer
impl Sync for AutoMLOptimizer
impl Unpin for AutoMLOptimizer
impl UnwindSafe for AutoMLOptimizer
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> 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