pub struct MeanFieldConfig {
pub max_iter: usize,
pub tol: f64,
pub damping: f64,
}Expand description
Mean-field inference configuration.
Fields§
§max_iter: usizeNumber of mean-field sweeps.
tol: f64Convergence threshold on max change of q.
damping: f64Damping factor q_new = (1−damp) q_old + damp q_update.
Trait Implementations§
Source§impl Clone for MeanFieldConfig
impl Clone for MeanFieldConfig
Source§fn clone(&self) -> MeanFieldConfig
fn clone(&self) -> MeanFieldConfig
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 moreimpl Copy for MeanFieldConfig
Source§impl Debug for MeanFieldConfig
impl Debug for MeanFieldConfig
Auto Trait Implementations§
impl Freeze for MeanFieldConfig
impl RefUnwindSafe for MeanFieldConfig
impl Send for MeanFieldConfig
impl Sync for MeanFieldConfig
impl Unpin for MeanFieldConfig
impl UnsafeUnpin for MeanFieldConfig
impl UnwindSafe for MeanFieldConfig
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