pub struct ChineseRestaurantProcessTrained {Show 13 fields
pub n_components: usize,
pub weights: Array1<f64>,
pub means: Array2<f64>,
pub covariances: Vec<Array2<f64>>,
pub covariance_type: CovarianceType,
pub n_features: usize,
pub alpha: f64,
pub table_assignments: Array1<usize>,
pub table_counts: Array1<usize>,
pub log_likelihood: f64,
pub n_iter: usize,
pub converged: bool,
pub reg_covar: f64,
}Expand description
Trained Chinese Restaurant Process Mixture Model
Fields§
§n_components: usizeNumber of active components
weights: Array1<f64>Mixture weights (table sizes normalized)
means: Array2<f64>Component means
covariances: Vec<Array2<f64>>Component covariances
covariance_type: CovarianceTypeCovariance type
n_features: usizeNumber of features
alpha: f64Concentration parameter
table_assignments: Array1<usize>Table assignments for training data
table_counts: Array1<usize>Number of customers at each table
log_likelihood: f64Log-likelihood of the model
n_iter: usizeNumber of iterations until convergence
converged: boolWhether the algorithm converged
reg_covar: f64Regularization parameter
Trait Implementations§
Source§impl Clone for ChineseRestaurantProcessTrained
impl Clone for ChineseRestaurantProcessTrained
Source§fn clone(&self) -> ChineseRestaurantProcessTrained
fn clone(&self) -> ChineseRestaurantProcessTrained
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 ChineseRestaurantProcessTrained
impl RefUnwindSafe for ChineseRestaurantProcessTrained
impl Send for ChineseRestaurantProcessTrained
impl Sync for ChineseRestaurantProcessTrained
impl Unpin for ChineseRestaurantProcessTrained
impl UnwindSafe for ChineseRestaurantProcessTrained
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