pub struct Hyperband {
pub max_iter: usize,
pub eta: usize,
/* private fields */
}Expand description
Hyperband
Adaptive resource allocation and early-stopping algorithm. Efficiently allocates resources to promising configurations.
Fields§
§max_iter: usize§eta: usizeImplementations§
Source§impl Hyperband
impl Hyperband
pub fn new(parameter_space: HashMap<String, ParameterSpace>) -> Self
pub fn max_iter(self, max_iter: usize) -> Self
pub fn eta(self, eta: usize) -> Self
Sourcepub fn optimize<F>(&self, objective: F) -> (Configuration, f32)
pub fn optimize<F>(&self, objective: F) -> (Configuration, f32)
Optimize with early stopping
The objective function receives (config, budget) and returns score
Auto Trait Implementations§
impl Freeze for Hyperband
impl RefUnwindSafe for Hyperband
impl Send for Hyperband
impl Sync for Hyperband
impl Unpin for Hyperband
impl UnwindSafe for Hyperband
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