pub struct NasParams { /* private fields */ }Expand description
Static configuration for an ArchNasStrategy run. No B generic.
Produced by ArchNasBuilder::build so per_variant_params and
max_param_count are derived from the registered variants and cannot drift
from the fitness adapter’s registry.
Implementations§
Source§impl NasParams
impl NasParams
Sourcepub fn num_variants(&self) -> usize
pub fn num_variants(&self) -> usize
Number of architecture variants (arch_id ranges over 0..num_variants).
Sourcepub fn per_variant_params(&self) -> &[usize]
pub fn per_variant_params(&self) -> &[usize]
Flat parameter count of each variant, indexed by arch_id.
Sourcepub fn max_param_count(&self) -> usize
pub fn max_param_count(&self) -> usize
Width of the weight tensor (per_variant_params.iter().max()).
Sourcepub fn arch_mutation_rate(&self) -> f32
pub fn arch_mutation_rate(&self) -> f32
Per-individual probability of reassigning the architecture id each generation.
Sourcepub fn weight_mutation_std(&self) -> f32
pub fn weight_mutation_std(&self) -> f32
Standard deviation of the isotropic Gaussian weight perturbation.
Sourcepub fn weight_init_std(&self) -> f32
pub fn weight_init_std(&self) -> f32
Standard deviation used to initialize (and re-initialize) weights.
Sourcepub fn tournament_size(&self) -> usize
pub fn tournament_size(&self) -> usize
Tournament size for parent selection.
Sourcepub fn elite_count(&self) -> usize
pub fn elite_count(&self) -> usize
Number of best individuals carried over unmutated each generation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NasParams
impl RefUnwindSafe for NasParams
impl Send for NasParams
impl Sync for NasParams
impl Unpin for NasParams
impl UnsafeUnpin for NasParams
impl UnwindSafe for NasParams
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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