pub struct Forgy;Expand description
The Forgy initialization scheme.
Trait Implementations§
Source§impl Initializer for Forgy
impl Initializer for Forgy
Source§fn init_centroids(
&self,
k: usize,
inputs: &Matrix<f64>,
) -> LearningResult<Matrix<f64>>
fn init_centroids( &self, k: usize, inputs: &Matrix<f64>, ) -> LearningResult<Matrix<f64>>
Initialize the centroids for the initial state of the K-Means model. Read more
Auto Trait Implementations§
impl Freeze for Forgy
impl RefUnwindSafe for Forgy
impl Send for Forgy
impl Sync for Forgy
impl Unpin for Forgy
impl UnwindSafe for Forgy
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