pub struct EvaluationConfig {
pub epochs: u32,
pub batch_size: usize,
pub learning_rate: f64,
pub performance_prediction: bool,
}Expand description
Evaluation configuration for architecture search
Fields§
§epochs: u32Number of epochs for evaluation
batch_size: usizeBatch size for training
learning_rate: f64Learning rate for evaluation
performance_prediction: boolUse performance prediction
Implementations§
Source§impl EvaluationConfig
impl EvaluationConfig
Sourcepub fn from_engine_config<T>(config: &EvaluationConfig<T>) -> Self
pub fn from_engine_config<T>(config: &EvaluationConfig<T>) -> Self
Derive an evaluation configuration from the richer, generic
nas_engine::config::EvaluationConfig carried by NASConfig.
The engine-level configuration describes budgets and statistical
testing; the evaluation subsystem only needs the step budget, batch size
and base learning rate, plus whether performance prediction is enabled.
max_epochs is clamped to at least one step so an evaluation always
performs real work.
Trait Implementations§
Source§impl Clone for EvaluationConfig
impl Clone for EvaluationConfig
Source§impl Debug for EvaluationConfig
impl Debug for EvaluationConfig
Source§impl Default for EvaluationConfig
impl Default for EvaluationConfig
Source§impl<'de> Deserialize<'de> for EvaluationConfig
impl<'de> Deserialize<'de> for EvaluationConfig
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
Auto Trait Implementations§
impl Freeze for EvaluationConfig
impl RefUnwindSafe for EvaluationConfig
impl Send for EvaluationConfig
impl Sync for EvaluationConfig
impl Unpin for EvaluationConfig
impl UnsafeUnpin for EvaluationConfig
impl UnwindSafe for EvaluationConfig
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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