pub struct Hyperparameters {
pub learning_rate: f64,
pub batch_size: usize,
pub gamma: f64,
pub epsilon_decay: f64,
pub priority_alpha: f64,
pub priority_beta: f64,
pub network_config: NetworkConfig,
pub timestamp: String,
pub quality_score: f64,
}Expand description
Hyperparameter configuration Enhanced hyperparameters including network config
Fields§
§learning_rate: f64§batch_size: usize§gamma: f64§epsilon_decay: f64§priority_alpha: f64§priority_beta: f64§network_config: NetworkConfig§timestamp: String§quality_score: f64Implementations§
Source§impl Hyperparameters
impl Hyperparameters
Sourcepub fn apply_to_config(&self, config: &mut Config)
pub fn apply_to_config(&self, config: &mut Config)
Apply hyperparameters to config
Sourcepub fn save_with_algorithm(
&self,
base_path: &Path,
algorithm: AlgorithmType,
) -> Result<()>
pub fn save_with_algorithm( &self, base_path: &Path, algorithm: AlgorithmType, ) -> Result<()>
Save to algorithm-specific JSON file
Sourcepub fn load_for_algorithm(
base_dir: &Path,
algorithm: AlgorithmType,
) -> Result<Self>
pub fn load_for_algorithm( base_dir: &Path, algorithm: AlgorithmType, ) -> Result<Self>
Load from algorithm-specific file
Trait Implementations§
Source§impl Clone for Hyperparameters
impl Clone for Hyperparameters
Source§fn clone(&self) -> Hyperparameters
fn clone(&self) -> Hyperparameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Hyperparameters
impl Debug for Hyperparameters
Source§impl<'de> Deserialize<'de> for Hyperparameters
impl<'de> Deserialize<'de> for Hyperparameters
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 Hyperparameters
impl RefUnwindSafe for Hyperparameters
impl Send for Hyperparameters
impl Sync for Hyperparameters
impl Unpin for Hyperparameters
impl UnsafeUnpin for Hyperparameters
impl UnwindSafe for Hyperparameters
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<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