pub struct MarkovRandomFieldMixtureBuilder { /* private fields */ }Expand description
Builder for Markov Random Field Mixture
Implementations§
Source§impl MarkovRandomFieldMixtureBuilder
impl MarkovRandomFieldMixtureBuilder
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 covariance_type(self, covariance_type: CovarianceType) -> Self
pub fn covariance_type(self, covariance_type: CovarianceType) -> Self
Set the covariance type
Sourcepub fn interaction_strength(self, interaction_strength: f64) -> Self
pub fn interaction_strength(self, interaction_strength: f64) -> Self
Set the interaction strength between neighboring components
Sourcepub fn neighborhood_size(self, neighborhood_size: usize) -> Self
pub fn neighborhood_size(self, neighborhood_size: usize) -> Self
Set the neighborhood size for MRF interactions
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) -> MarkovRandomFieldMixture<Untrained>
pub fn build(self) -> MarkovRandomFieldMixture<Untrained>
Build the Markov Random Field mixture model
Trait Implementations§
Source§impl Clone for MarkovRandomFieldMixtureBuilder
impl Clone for MarkovRandomFieldMixtureBuilder
Source§fn clone(&self) -> MarkovRandomFieldMixtureBuilder
fn clone(&self) -> MarkovRandomFieldMixtureBuilder
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 MarkovRandomFieldMixtureBuilder
impl RefUnwindSafe for MarkovRandomFieldMixtureBuilder
impl Send for MarkovRandomFieldMixtureBuilder
impl Sync for MarkovRandomFieldMixtureBuilder
impl Unpin for MarkovRandomFieldMixtureBuilder
impl UnwindSafe for MarkovRandomFieldMixtureBuilder
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