Struct smartcore::cluster::kmeans::KMeansParameters
source · pub struct KMeansParameters {
pub k: usize,
pub max_iter: usize,
pub seed: Option<u64>,
}
Expand description
K-Means clustering algorithm parameters
Fields§
§k: usize
Number of clusters.
max_iter: usize
Maximum number of iterations of the k-means algorithm for a single run.
seed: Option<u64>
Determines random number generation for centroid initialization. Use an int to make the randomness deterministic
Implementations§
Trait Implementations§
source§impl Clone for KMeansParameters
impl Clone for KMeansParameters
source§fn clone(&self) -> KMeansParameters
fn clone(&self) -> KMeansParameters
Returns a copy 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 KMeansParameters
impl Debug for KMeansParameters
source§impl Default for KMeansParameters
impl Default for KMeansParameters
Auto Trait Implementations§
impl RefUnwindSafe for KMeansParameters
impl Send for KMeansParameters
impl Sync for KMeansParameters
impl Unpin for KMeansParameters
impl UnwindSafe for KMeansParameters
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