pub struct LargeScaleVariationalConfig {
pub max_epochs: usize,
pub batch_size: usize,
pub learning_rate: Float,
pub learning_rate_decay: LearningRateDecay,
pub tolerance: Float,
pub n_mc_samples: usize,
pub use_natural_gradients: bool,
pub use_control_variates: bool,
pub memory_limit_gb: Option<Float>,
pub verbose: bool,
pub random_seed: Option<u64>,
pub prior_config: PriorConfiguration,
}Expand description
Configuration for large-scale variational inference
Fields§
§max_epochs: usizeMaximum number of epochs
batch_size: usizeMini-batch size for stochastic updates
learning_rate: FloatLearning rate for variational parameter updates
learning_rate_decay: LearningRateDecayLearning rate decay schedule
tolerance: FloatConvergence tolerance
n_mc_samples: usizeNumber of Monte Carlo samples for expectations
use_natural_gradients: boolWhether to use natural gradients
use_control_variates: boolWhether to use control variates for variance reduction
memory_limit_gb: Option<Float>Memory limit in GB for adaptive batch sizing
verbose: boolWhether to enable verbose output
random_seed: Option<u64>Random seed for reproducibility
prior_config: PriorConfigurationPrior parameters
Trait Implementations§
Source§impl Clone for LargeScaleVariationalConfig
impl Clone for LargeScaleVariationalConfig
Source§fn clone(&self) -> LargeScaleVariationalConfig
fn clone(&self) -> LargeScaleVariationalConfig
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 moreSource§impl Debug for LargeScaleVariationalConfig
impl Debug for LargeScaleVariationalConfig
Auto Trait Implementations§
impl Freeze for LargeScaleVariationalConfig
impl RefUnwindSafe for LargeScaleVariationalConfig
impl Send for LargeScaleVariationalConfig
impl Sync for LargeScaleVariationalConfig
impl Unpin for LargeScaleVariationalConfig
impl UnwindSafe for LargeScaleVariationalConfig
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> 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