pub struct SaemConfig {Show 24 fields
pub k1_iterations: usize,
pub k2_iterations: usize,
pub burn_in: usize,
pub sa_iterations: usize,
pub sa_cooling_factor: f64,
pub mcmc_step_size: f64,
pub rw_init: f64,
pub n_chains: usize,
pub mcmc_iterations: usize,
pub omega_min_variance: f64,
pub use_gibbs: bool,
pub n_kernels: usize,
pub transform_par: Vec<u8>,
pub compute_map: bool,
pub compute_fim: bool,
pub compute_ll_is: bool,
pub compute_ll_gq: bool,
pub n_mc_is: usize,
pub nu_is: usize,
pub n_nodes_gq: usize,
pub n_sd_gq: f64,
pub display_progress: usize,
pub seed: u64,
pub fix_seed: bool,
}Fields§
§k1_iterations: usize§k2_iterations: usize§burn_in: usize§sa_iterations: usize§sa_cooling_factor: f64§mcmc_step_size: f64§rw_init: f64§n_chains: usize§mcmc_iterations: usize§omega_min_variance: f64§use_gibbs: bool§n_kernels: usize§transform_par: Vec<u8>§compute_map: bool§compute_fim: bool§compute_ll_is: bool§compute_ll_gq: bool§n_mc_is: usize§nu_is: usize§n_nodes_gq: usize§n_sd_gq: f64§display_progress: usize§seed: u64§fix_seed: boolImplementations§
Source§impl SaemConfig
impl SaemConfig
Sourcepub fn k1_iterations(self, iterations: usize) -> Self
pub fn k1_iterations(self, iterations: usize) -> Self
Number of exploration-phase (K1) iterations.
Sourcepub fn k2_iterations(self, iterations: usize) -> Self
pub fn k2_iterations(self, iterations: usize) -> Self
Number of smoothing-phase (K2) iterations.
Sourcepub fn mcmc_step_size(self, step_size: f64) -> Self
pub fn mcmc_step_size(self, step_size: f64) -> Self
MCMC step size.
pub fn total_iterations(&self) -> usize
pub fn is_exploration_phase(&self, iteration: usize) -> bool
pub fn is_smoothing_phase(&self, iteration: usize) -> bool
pub fn is_sa_active(&self, iteration: usize) -> bool
pub fn sa_temperature(&self, iteration: usize) -> f64
pub fn step_size(&self, iteration: usize) -> f64
pub fn get_transform(&self, param_idx: usize) -> u8
pub fn get_transforms(&self, n_params: usize) -> Vec<u8> ⓘ
pub fn infer_transforms_from_ranges(&mut self, ranges: &[(f64, f64)])
Trait Implementations§
Source§impl<E: Equation + Send + 'static> Algorithm<E, Parametric> for SaemConfig
impl<E: Equation + Send + 'static> Algorithm<E, Parametric> for SaemConfig
Source§type Output = ParametricResult<E>
type Output = ParametricResult<E>
The specific result struct (e.g.
NonParametricResult<E>).Source§fn fit(self, problem: EstimationProblem<E, Parametric>) -> Result<Self::Output>
fn fit(self, problem: EstimationProblem<E, Parametric>) -> Result<Self::Output>
Consumes the configuration and the problem, runs the optimization to
completion, and returns the strictly-typed result.
Source§impl Clone for SaemConfig
impl Clone for SaemConfig
Source§fn clone(&self) -> SaemConfig
fn clone(&self) -> SaemConfig
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 SaemConfig
impl Debug for SaemConfig
Source§impl Default for SaemConfig
impl Default for SaemConfig
Source§impl<'de> Deserialize<'de> for SaemConfigwhere
SaemConfig: Default,
impl<'de> Deserialize<'de> for SaemConfigwhere
SaemConfig: Default,
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
Source§impl From<SaemConfig> for ParametricAlgorithm
impl From<SaemConfig> for ParametricAlgorithm
Source§fn from(config: SaemConfig) -> Self
fn from(config: SaemConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SaemConfig
impl RefUnwindSafe for SaemConfig
impl Send for SaemConfig
impl Sync for SaemConfig
impl Unpin for SaemConfig
impl UnsafeUnpin for SaemConfig
impl UnwindSafe for SaemConfig
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,
§impl<T> Context for T
impl<T> Context for T
fn vector_from_element<V>(&self, len: usize, value: <V as VectorCommon>::T) -> Vwhere
V: Vector<C = Self>,
fn vector_from_vec<V>(&self, vec: Vec<<V as VectorCommon>::T>) -> Vwhere
V: Vector<C = Self>,
fn vector_zeros<V>(&self, len: usize) -> Vwhere
V: Vector<C = Self>,
fn dense_mat_zeros<V>(
&self,
rows: usize,
cols: usize,
) -> <V as DefaultDenseMatrix>::Mwhere
V: Vector<C = Self> + DefaultDenseMatrix,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.