[mlpack-git] [mlpack] Mean shift clustering (#388)

Ryan Curtin notifications at github.com
Mon Jan 26 21:26:30 EST 2015


> + * For each point in dataset, apply mean shift algorithm until maximum 
> + * iterations or convergence. 
> + * Then remove duplicate centroids.
> + * 
> + * A simple example of how to run Mean Shift clustering is shown below.
> + *
> + * @code
> + * extern arma::mat data; // Dataset we want to run Mean Shift on.
> + * arma::Col<size_t> assignments; // Cluster assignments.
> + * arma::mat centroids; // Cluster centroids.
> + *
> + * MeanShift<arma::mat, kernel::GaussianKernel> meanShift();
> + * meanShift.Cluster(dataset, assignments, centroids);
> + * @endcode
> + *
> + * @tparam KernelType the kernel to use.

Mean shift will not work with every type of kernel (i.e. it will not work with the linear kernel or the polynomial kernel or other kernels that are not shift-invariant and normalized).  We should make sure that the user knows that only certain kernels can be used.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/388/files#r23583303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/dd0124e5/attachment.html>


More information about the mlpack-git mailing list