pub struct VbHmmResult {
pub alpha: Vec<f64>,
pub beta: Vec<f64>,
pub gamma: Vec<f64>,
pub elbo_history: Vec<f64>,
pub n_iter: usize,
pub converged: bool,
}Expand description
Result of Variational Bayes HMM training.
Fields§
§alpha: Vec<f64>Dirichlet concentration parameters for the initial-state posterior (n_states,).
beta: Vec<f64>Dirichlet concentration parameters for the transition posterior, row-major (n_states × n_states,).
gamma: Vec<f64>Dirichlet concentration parameters for the emission posterior, row-major (n_states × n_obs,).
elbo_history: Vec<f64>ELBO (Evidence Lower BOund) at each iteration.
n_iter: usizeNumber of VB-EM iterations executed.
converged: boolWhether the algorithm converged within the tolerance.
Implementations§
Source§impl VbHmmResult
impl VbHmmResult
Sourcepub fn expected_log_pi(&self) -> Vec<f64>
pub fn expected_log_pi(&self) -> Vec<f64>
Expected log initial-state probabilities: E[log π_i] = ψ(α_i) − ψ(Σ_j α_j).
Sourcepub fn mean_pi(&self) -> Vec<f64>
pub fn mean_pi(&self) -> Vec<f64>
Posterior mean of the initial-state distribution: α_i / Σ_j α_j.
Trait Implementations§
Source§impl Clone for VbHmmResult
impl Clone for VbHmmResult
Source§fn clone(&self) -> VbHmmResult
fn clone(&self) -> VbHmmResult
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 moreAuto Trait Implementations§
impl Freeze for VbHmmResult
impl RefUnwindSafe for VbHmmResult
impl Send for VbHmmResult
impl Sync for VbHmmResult
impl Unpin for VbHmmResult
impl UnsafeUnpin for VbHmmResult
impl UnwindSafe for VbHmmResult
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