Enum SamplerChoice
pub enum SamplerChoice {
Random,
Grid,
Qmc,
Tpe,
Cmaes,
GpEi,
Nsga2,
Dehb,
Carbs,
}Expand description
A sampler the demo can run. Each choice is a separate, separately seeded run; the demo never ranks them.
Variants§
Random
Independent uniform draws.
Grid
An exhaustive square lattice in a fixed order, as large as the budget holds.
Qmc
The Sobol low-discrepancy sequence.
Tpe
Tree-structured Parzen estimator; its first ten trials are uniform startup draws before the model takes over.
Cmaes
Covariance matrix adaptation evolution strategy over the declared box.
GpEi
Gaussian-process expected improvement with closed-form hyperparameters.
Nsga2
NSGA-II, an elitist genetic algorithm with one objective.
Dehb
Differential-evolution Hyperband over the 1, 3, 9 step ladder.
Carbs
Cost-aware Bayesian optimization over a declared second objective.
Implementations§
§impl SamplerChoice
impl SamplerChoice
pub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
One factual sentence on how the sampler proposes trials.
pub fn from_slug(slug: &str) -> Option<Self>
pub fn from_slug(slug: &str) -> Option<Self>
Parses a Self::slug.
Trait Implementations§
§impl Clone for SamplerChoice
impl Clone for SamplerChoice
§fn clone(&self) -> SamplerChoice
fn clone(&self) -> SamplerChoice
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SamplerChoice
§impl Debug for SamplerChoice
impl Debug for SamplerChoice
impl Eq for SamplerChoice
§impl Hash for SamplerChoice
impl Hash for SamplerChoice
§impl PartialEq for SamplerChoice
impl PartialEq for SamplerChoice
impl StructuralPartialEq for SamplerChoice
Auto Trait Implementations§
impl Freeze for SamplerChoice
impl RefUnwindSafe for SamplerChoice
impl Send for SamplerChoice
impl Sync for SamplerChoice
impl Unpin for SamplerChoice
impl UnsafeUnpin for SamplerChoice
impl UnwindSafe for SamplerChoice
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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