Policy which allows K-Means to create empty clusters without any error being reported. More...
Public Member Functions | |
| AllowEmptyClusters () | |
| Default constructor required by EmptyClusterPolicy policy. | |
Static Public Member Functions | |
| template<typename MatType > | |
| static size_t | EmptyCluster (const MatType &, const size_t, const MatType &, arma::Col< size_t > &, arma::Col< size_t > &) |
| This function does nothing. | |
Policy which allows K-Means to create empty clusters without any error being reported.
Definition at line 35 of file allow_empty_clusters.hpp.
| mlpack::kmeans::AllowEmptyClusters::AllowEmptyClusters | ( | ) | [inline] |
Default constructor required by EmptyClusterPolicy policy.
Definition at line 39 of file allow_empty_clusters.hpp.
| static size_t mlpack::kmeans::AllowEmptyClusters::EmptyCluster | ( | const MatType & | , | |
| const | size_t, | |||
| const MatType & | , | |||
| arma::Col< size_t > & | , | |||
| arma::Col< size_t > & | ||||
| ) | [inline, static] |
This function does nothing.
It is called by K-Means when K-Means detects an empty cluster.
| MatType | Type of data (arma::mat or arma::spmat). |
| data | Dataset on which clustering is being performed. | |
| emptyCluster | Index of cluster which is empty. | |
| centroids | Centroids of each cluster (one per column). | |
| clusterCounts | Number of points in each cluster. | |
| assignments | Cluster assignments of each point. |
Definition at line 55 of file allow_empty_clusters.hpp.
1.6.1