pub struct GmmModel {
pub weights: Vec<f64>,
pub means: Vec<f64>,
pub variances: Vec<f64>,
pub labels: Vec<usize>,
pub log_likelihood: f64,
pub k: usize,
pub p: usize,
pub n_iter: usize,
pub converged: bool,
}Expand description
A fitted diagonal-covariance Gaussian mixture.
Fields§
§weights: Vec<f64>Mixing weights π_c (sum to 1).
means: Vec<f64>Component means, k × p row-major.
variances: Vec<f64>Per-component diagonal variances, k × p row-major.
labels: Vec<usize>Hard assignment (argmax responsibility) per input row.
log_likelihood: f64§k: usize§p: usize§n_iter: usize§converged: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for GmmModel
impl RefUnwindSafe for GmmModel
impl Send for GmmModel
impl Sync for GmmModel
impl Unpin for GmmModel
impl UnsafeUnpin for GmmModel
impl UnwindSafe for GmmModel
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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> 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