pub enum Scale {
Linear,
Log,
ReverseLog,
}Expand description
Scale for continuous search ranges.
Governs how samplers interpolate between low and high: which
values a grid places its points at and where random draws
concentrate.
Variants§
Linear
Uniform spacing across the range.
Log
Logarithmic spacing: samples concentrate near the low end. The right choice for learning rates and regularization strengths, where orders of magnitude matter more than absolute differences.
ReverseLog
Mirror image of Scale::Log: samples concentrate near the
high end. Useful for parameters like momentum or keep
probability, where the interesting region is close to the
upper bound.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scale
impl<'de> Deserialize<'de> for Scale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Scale
impl Eq for Scale
impl StructuralPartialEq for Scale
Auto Trait Implementations§
impl Freeze for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnsafeUnpin for Scale
impl UnwindSafe for Scale
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