pub struct HyperoptSearch { /* private fields */ }Expand description
High-level hyperparameter optimization interface.
Implementations§
Source§impl HyperoptSearch
impl HyperoptSearch
Sourcepub fn add_real(
self,
name: &str,
lower: f64,
upper: f64,
log_scale: bool,
) -> Self
pub fn add_real( self, name: &str, lower: f64, upper: f64, log_scale: bool, ) -> Self
Add a real-valued hyperparameter.
Sourcepub fn add_int(self, name: &str, lower: i64, upper: i64) -> Self
pub fn add_int(self, name: &str, lower: i64, upper: i64) -> Self
Add an integer hyperparameter.
Sourcepub fn add_categorical(self, name: &str, choices: &[&str]) -> Self
pub fn add_categorical(self, name: &str, choices: &[&str]) -> Self
Add a categorical hyperparameter.
Sourcepub fn with_algorithm(self, algorithm: SearchAlgorithm) -> Self
pub fn with_algorithm(self, algorithm: SearchAlgorithm) -> Self
Set the search algorithm backend.
Sourcepub fn with_n_jobs(self, n_jobs: usize) -> Self
pub fn with_n_jobs(self, n_jobs: usize) -> Self
Set number of parallel jobs (reserved for future use).
Sourcepub fn minimize<F>(&self, objective: F, budget: Budget) -> HyperoptResult
pub fn minimize<F>(&self, objective: F, budget: Budget) -> HyperoptResult
Minimize an objective function over the hyperparameter space.
Sourcepub fn maximize<F>(&self, objective: F, budget: Budget) -> HyperoptResult
pub fn maximize<F>(&self, objective: F, budget: Budget) -> HyperoptResult
Maximize an objective function (convenience wrapper).
Trait Implementations§
Source§impl Clone for HyperoptSearch
impl Clone for HyperoptSearch
Source§fn clone(&self) -> HyperoptSearch
fn clone(&self) -> HyperoptSearch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HyperoptSearch
impl Debug for HyperoptSearch
Auto Trait Implementations§
impl Freeze for HyperoptSearch
impl RefUnwindSafe for HyperoptSearch
impl Send for HyperoptSearch
impl Sync for HyperoptSearch
impl Unpin for HyperoptSearch
impl UnwindSafe for HyperoptSearch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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