import Clusterer from '@jsmlt/jsmlt/src/unsupervised/base.js'
Base class for clustering algorithms.
cluster(X: Array<Array<number>>): Array<number>
Assign clusters to samples.
train(X: Array<Array<number>>)
Run the clustering algorithm on a dataset and obtain the cluster predictions per class.
Features per data point
Cluster indices assigned to input data points. For n input data points, an n-dimensional array containing the cluster assignments will be returned