|
|
| File Information |
| Description |
This function performs kernel version of kmeans algorithm. When the linear kernel (i.e., inner product) is used, the algorithm is equivalent to standard kmeans algorithm.
Input
K: n x n a semi-definite matrix computed by a kernel function on all sample pairs
m: the number of clusters k (1 x 1) or the initial label of samples (1 x n, 1<=label(i)<=k)
reference: [1] Kernel Methods for Pattern Analysis
by John Shawe-Taylor, Nello Cristianini
sample code:
load data;
K=x'*x; % use linear kernel
label=knkmeans(K,3);
spread(x,label) |
| MATLAB release |
MATLAB 7.9 (R2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 25 Dec 2009 |
add sample data and detail description |
| 30 Sep 2010 |
remove empty clusters |
| 03 Feb 2012 |
fix a minor bug of returning energy |
| 03 Feb 2012 |
Improve the code and fix a bug of returning energy |
|
Contact us