pub struct SweepConfig {
pub parameter: SweepParameter,
pub runs_per_point: usize,
pub early_stop: bool,
pub seed: Option<u64>,
}Expand description
Sweep configuration.
Fields§
§parameter: SweepParameterParameter to sweep
runs_per_point: usizeNumber of runs per configuration
early_stop: boolWhether to use early stopping
seed: Option<u64>Random seed for reproducibility
Implementations§
Source§impl SweepConfig
impl SweepConfig
Sourcepub fn temperature(range: Range<f32>, step: f32) -> Self
pub fn temperature(range: Range<f32>, step: f32) -> Self
Create a temperature sweep.
Sourcepub fn with_early_stop(self) -> Self
pub fn with_early_stop(self) -> Self
Enable early stopping.
Trait Implementations§
Source§impl Clone for SweepConfig
impl Clone for SweepConfig
Source§fn clone(&self) -> SweepConfig
fn clone(&self) -> SweepConfig
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 moreAuto Trait Implementations§
impl Freeze for SweepConfig
impl RefUnwindSafe for SweepConfig
impl Send for SweepConfig
impl Sync for SweepConfig
impl Unpin for SweepConfig
impl UnsafeUnpin for SweepConfig
impl UnwindSafe for SweepConfig
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