pub trait ClusteringModel: SerializableModel {
// Required methods
fn n_clusters(&self) -> usize;
fn predict(&self, data: ArrayView2<'_, f64>) -> Result<Array1<usize>>;
fn summary(&self) -> Result<Value>;
}Expand description
Generic clustering model trait
Required Methods§
Sourcefn n_clusters(&self) -> usize
fn n_clusters(&self) -> usize
Get the number of clusters
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.