Policy which allows K-Means to create empty clusters without any error being reported. More...
|Default constructor required by EmptyClusterPolicy policy. More...|
|void||Serialize (Archive &, const unsigned int)|
|Serialize the empty cluster policy (nothing to do). More...|
|static force_inline size_t||EmptyCluster (const MatType &, const size_t emptyCluster, const arma::mat &oldCentroids, arma::mat &newCentroids, arma::Col< size_t > &, MetricType &, const size_t)|
|This function allows empty clusters to persist simply by leaving the empty cluster in its last position. More...|
Policy which allows K-Means to create empty clusters without any error being reported.
Constructor & Destructor Documentation
Member Function Documentation
This function allows empty clusters to persist simply by leaving the empty cluster in its last position.
- Template Parameters
MatType Type of data (arma::mat or arma::spmat).
data Dataset on which clustering is being performed. emptyCluster Index of cluster which is empty. oldCentroids Centroids of each cluster (one per column) at the start of the iteration. newCentroids Centroids of each cluster (one per column) at the end of the iteration. clusterCounts Number of points in each cluster. assignments Cluster assignments of each point. iteration Number of iteration.
- Number of points changed (0).
The documentation for this class was generated from the following file:
Generated by 1.8.13