pub struct ModelSelection {
pub aic: f64,
pub bic: f64,
pub log_likelihood: f64,
pub n_parameters: usize,
}Expand description
Model selection criteria results
Fields§
§aic: f64aic
bic: f64bic
log_likelihood: f64log_likelihood
n_parameters: usizen_parameters
Implementations§
Source§impl ModelSelection
impl ModelSelection
Sourcepub fn bic(log_likelihood: f64, n_params: usize, n_samples: usize) -> f64
pub fn bic(log_likelihood: f64, n_params: usize, n_samples: usize) -> f64
Calculate Bayesian Information Criterion (BIC)
Sourcepub fn aic(log_likelihood: f64, n_params: usize) -> f64
pub fn aic(log_likelihood: f64, n_params: usize) -> f64
Calculate Akaike Information Criterion (AIC)
Sourcepub fn n_parameters(
n_components: usize,
n_features: usize,
covariance_type: &CovarianceType,
) -> usize
pub fn n_parameters( n_components: usize, n_features: usize, covariance_type: &CovarianceType, ) -> usize
Calculate number of parameters for given configuration
Trait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
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 moreAuto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnwindSafe for ModelSelection
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