pub struct ReclusterSettings {
pub gap_statistic_reference_datasets: u32,
pub max_clusters: usize,
pub algorithm: ClusterAlgorithm,
pub projection_method: ProjectionMethod,
}Fields§
§gap_statistic_reference_datasets: u32The number of reference datasets to use for the gap statistic. (which is used to determine the optimal number of clusters) 50 will give a decent estimate but for the best results use more, 500 will give a very good estimate but be very slow. We default to 250 in release mode.
max_clusters: usizeThe maximum number of clusters to create. This is the upper bound on the number of clusters that can be created. Increase if you’re getting a “could not find optimal k” error. Default is 24.
algorithm: ClusterAlgorithmThe clustering algorithm to use. Either “kmeans” or “gmm”.
projection_method: ProjectionMethodThe projection method to preprocess the data with before clustering. Either “tsne”, “pca”, or “none”. Default is “none”.
Trait Implementations§
Source§impl Clone for ReclusterSettings
impl Clone for ReclusterSettings
Source§fn clone(&self) -> ReclusterSettings
fn clone(&self) -> ReclusterSettings
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 moreSource§impl Debug for ReclusterSettings
impl Debug for ReclusterSettings
Source§impl Default for ReclusterSettings
impl Default for ReclusterSettings
Source§impl<'de> Deserialize<'de> for ReclusterSettings
impl<'de> Deserialize<'de> for ReclusterSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReclusterSettings
impl PartialEq for ReclusterSettings
impl Copy for ReclusterSettings
impl Eq for ReclusterSettings
impl StructuralPartialEq for ReclusterSettings
Auto Trait Implementations§
impl Freeze for ReclusterSettings
impl RefUnwindSafe for ReclusterSettings
impl Send for ReclusterSettings
impl Sync for ReclusterSettings
impl Unpin for ReclusterSettings
impl UnwindSafe for ReclusterSettings
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