pub struct MultiModalGaussianMixtureBuilder { /* private fields */ }Expand description
Builder for Multi-Modal GMM
Implementations§
Source§impl MultiModalGaussianMixtureBuilder
impl MultiModalGaussianMixtureBuilder
Sourcepub fn new(n_components: usize) -> Self
pub fn new(n_components: usize) -> Self
Create a new builder with specified number of components
Sourcepub fn add_modality(self, modality: ModalitySpec) -> Self
pub fn add_modality(self, modality: ModalitySpec) -> Self
Add a data modality
Sourcepub fn add_modality_simple(self, name: &str, n_features: usize) -> Self
pub fn add_modality_simple(self, name: &str, n_features: usize) -> Self
Add a data modality with default settings
Sourcepub fn fusion_strategy(self, strategy: FusionStrategy) -> Self
pub fn fusion_strategy(self, strategy: FusionStrategy) -> Self
Set fusion strategy
Set shared latent dimension (for intermediate fusion)
Sourcepub fn coupling_strength(self, strength: f64) -> Self
pub fn coupling_strength(self, strength: f64) -> Self
Set coupling strength between modalities
Sourcepub fn regularization_strength(self, strength: f64) -> Self
pub fn regularization_strength(self, strength: f64) -> Self
Set regularization strength
Sourcepub fn random_state(self, random_state: u64) -> Self
pub fn random_state(self, random_state: u64) -> Self
Set random state for reproducibility
Sourcepub fn build(self) -> SklResult<MultiModalGaussianMixture<Untrained>>
pub fn build(self) -> SklResult<MultiModalGaussianMixture<Untrained>>
Build the multi-modal GMM
Trait Implementations§
Source§impl Clone for MultiModalGaussianMixtureBuilder
impl Clone for MultiModalGaussianMixtureBuilder
Source§fn clone(&self) -> MultiModalGaussianMixtureBuilder
fn clone(&self) -> MultiModalGaussianMixtureBuilder
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 MultiModalGaussianMixtureBuilder
impl RefUnwindSafe for MultiModalGaussianMixtureBuilder
impl Send for MultiModalGaussianMixtureBuilder
impl Sync for MultiModalGaussianMixtureBuilder
impl Unpin for MultiModalGaussianMixtureBuilder
impl UnwindSafe for MultiModalGaussianMixtureBuilder
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