Struct IsotropicEs
pub struct IsotropicEs { /* private fields */ }Expand description
(μ/μ_w, λ)-ES with cumulative step-size adaptation and no covariance
adaptation — the CMA-ES ablation the M4.3 oracle’s sentinel runs.
See the module documentation for exactly which pieces are shared with the real sampler and which one is missing.
Implementations§
§impl IsotropicEs
impl IsotropicEs
pub fn new() -> Self
pub fn new() -> Self
The ablation with the real sampler’s defaults.
Trait Implementations§
§impl Debug for IsotropicEs
impl Debug for IsotropicEs
§impl Default for IsotropicEs
impl Default for IsotropicEs
§impl Sampler for IsotropicEs
impl Sampler for IsotropicEs
§fn infer_relative_space(&self, study: &StudyView) -> Result<SpaceSchema>
fn infer_relative_space(&self, study: &StudyView) -> Result<SpaceSchema>
§fn sample_relative(
&self,
_study: &StudyView,
trial: &TrialMeta,
space: &SpaceSchema,
) -> Result<Assignment>
fn sample_relative( &self, _study: &StudyView, trial: &TrialMeta, space: &SpaceSchema, ) -> Result<Assignment>
Draws one offspring x = clamp(m + σ·z) — the CMA-ES draw with B·D
deleted — and turns it into an assignment.
§Errors
Error::Sampler when the space has no continuous dimension or the lock
is poisoned; Error::InvalidSpace if a declared distribution is
malformed.
§fn sample_independent(
&self,
_study: &StudyView,
trial: &TrialMeta,
name: &str,
dist: &Distribution,
) -> Result<ParamValue>
fn sample_independent( &self, _study: &StudyView, trial: &TrialMeta, name: &str, dist: &Distribution, ) -> Result<ParamValue>
The uniform fallback for a parameter the relative space did not cover.
§Errors
Error::InvalidSpace if dist is malformed.
§fn after_trial(&self, study: &StudyView, trial: &FrozenTrial) -> Result<()>
fn after_trial(&self, study: &StudyView, trial: &FrozenTrial) -> Result<()>
Admits the finished trial’s offspring and advances the generation when it is full — the real sampler’s rules (current generation, single objective, finite loss), minus the bred-coordinate check the oracle never exercises (no benchmark run enqueues or forks a trial).
§Errors
Never: a failure here must not fail the trial.
§fn state(&self) -> Result<Option<StateBlob>, Error>
fn state(&self) -> Result<Option<StateBlob>, Error>
§fn snapshots_space(&self) -> bool
fn snapshots_space(&self) -> bool
Auto Trait Implementations§
impl !Freeze for IsotropicEs
impl RefUnwindSafe for IsotropicEs
impl Send for IsotropicEs
impl Sync for IsotropicEs
impl Unpin for IsotropicEs
impl UnsafeUnpin for IsotropicEs
impl UnwindSafe for IsotropicEs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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