pub struct PipelineOptimizer { /* private fields */ }Expand description
Pipeline parameter optimizer
Implementations§
Source§impl PipelineOptimizer
impl PipelineOptimizer
Sourcepub fn parameter_space(self, space: ParameterSpace) -> Self
pub fn parameter_space(self, space: ParameterSpace) -> Self
Add a parameter space to optimize
Sourcepub fn search_strategy(self, strategy: SearchStrategy) -> Self
pub fn search_strategy(self, strategy: SearchStrategy) -> Self
Set the search strategy
Sourcepub fn scoring(self, metric: ScoringMetric) -> Self
pub fn scoring(self, metric: ScoringMetric) -> Self
Set the scoring metric
Sourcepub fn optimize<S>(
&self,
pipeline: Pipeline<S>,
x: &ArrayView2<'_, Float>,
y: &ArrayView1<'_, Float>,
) -> SklResult<OptimizationResults>where
S: Debug,
pub fn optimize<S>(
&self,
pipeline: Pipeline<S>,
x: &ArrayView2<'_, Float>,
y: &ArrayView1<'_, Float>,
) -> SklResult<OptimizationResults>where
S: Debug,
Optimize pipeline parameters
Sourcepub fn multi_objective_optimize<S>(
&self,
pipeline: Pipeline<S>,
x: &ArrayView2<'_, Float>,
y: &ArrayView1<'_, Float>,
metrics: Vec<ScoringMetric>,
) -> SklResult<ParetoFront>where
S: Debug,
pub fn multi_objective_optimize<S>(
&self,
pipeline: Pipeline<S>,
x: &ArrayView2<'_, Float>,
y: &ArrayView1<'_, Float>,
metrics: Vec<ScoringMetric>,
) -> SklResult<ParetoFront>where
S: Debug,
Perform multi-objective optimization
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelineOptimizer
impl RefUnwindSafe for PipelineOptimizer
impl Send for PipelineOptimizer
impl Sync for PipelineOptimizer
impl Unpin for PipelineOptimizer
impl UnwindSafe for PipelineOptimizer
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