24 #ifndef __MLPACK_METHODS_KMEANS_REFINED_START_HPP 25 #define __MLPACK_METHODS_KMEANS_REFINED_START_HPP 69 template<
typename MatType>
70 void Cluster(
const MatType& data,
71 const size_t clusters,
72 arma::Col<size_t>& assignments)
const;
95 #include "refined_start_impl.hpp" size_t Samplings() const
Get the number of samplings that will be performed.
Linear algebra utility functions, generally performed on matrices or vectors.
RefinedStart(const size_t samplings=100, const double percentage=0.02)
Create the RefinedStart object, optionally specifying parameters for the number of samplings to perfo...
double & Percentage()
Modify the percentage of the data used by each subsampling.
double percentage
The percentage of the data to use for each subsampling.
double Percentage() const
Get the percentage of the data used by each subsampling.
void Cluster(const MatType &data, const size_t clusters, arma::Col< size_t > &assignments) const
Partition the given dataset into the given number of clusters according to the random sampling scheme...
size_t samplings
The number of samplings to perform.
A refined approach for choosing initial points for k-means clustering.
size_t & Samplings()
Modify the number of samplings that will be performed.