Trait reductive::kmeans::StopCondition [−][src]
pub trait StopCondition<A> {
fn should_stop(&mut self, iteration: usize, loss: A) -> bool;
}
Expand description
k-means stopping conditions.
Required methods
fn should_stop(&mut self, iteration: usize, loss: A) -> bool
fn should_stop(&mut self, iteration: usize, loss: A) -> bool
Returns true
when k-means clustering should stop.