pub struct KMeans { /* private fields */ }Expand description
k-means clustering wrapper. Holds an Handle specialised for
da_handle_kmeans and exposes the typical fit/predict interface.
Implementations§
Source§impl KMeans
impl KMeans
Sourcepub fn new(n_clusters: usize) -> Result<Self>
pub fn new(n_clusters: usize) -> Result<Self>
Build a new k-means model with n_clusters clusters in f64
precision.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KMeans
impl !RefUnwindSafe for KMeans
impl !Sync for KMeans
impl Forget for KMeans
impl Move for KMeans
impl Send for KMeans
impl Unpin for KMeans
impl UnsafeUnpin for KMeans
impl UnwindSafe for KMeans
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