Kernel Kmeans

버전 1.8.0.0 (4.1 KB) 작성자: Mo Chen
kernel kmeans algorithm
다운로드 수: 6.8K
업데이트 날짜: 2017/3/11

라이선스 보기

This function performs kernel kmeans algorithm. When the linear kernel (i.e., inner product) is used, the algorithm is equivalent to standard kmeans algorithm. Several nonlinear kernel functions are also provided. Upon request, I also include a prediction function for out-of-sample inference. Please try following code for a demo:
clear; close all;
d = 2;
k = 3;
n = 500;
[X,label] = kmeansRnd(d,k,n);
init = ceil(k*rand(1,n));
[y,mse,model] = knKmeans(X,init,@knLin);
plotClass(X,y)
idx = 1:2:n;
Xt = X(:,idx);
t = knKmeansPred(model, Xt);
plotClass(Xt,t)
This function is now a part of the PRML toolbox (http://www.mathworks.com/matlabcentral/fileexchange/55826-pattern-recognition-and-machine-learning-toolbox).

인용 양식

Mo Chen (2024). Kernel Kmeans (https://www.mathworks.com/matlabcentral/fileexchange/26182-kernel-kmeans), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.8.0.0

tweak

1.7.0.0

fix incompatibility issue due the stupid API change of function unique()
Improve the code and fix a bug of returning energy
update description

1.6.0.0

n/a

1.5.0.0

fix a minor bug of returning energy

1.2.0.0

remove empty clusters

1.1.0.0

add sample data and detail description

1.0.0.0