Skip to content

Commit

Permalink
tweak knkmeans
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Jul 25, 2019
1 parent d3efd3a commit 50a654c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions chapter06/knKmeans.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [label, model, energy] = knKmeans(K, init)
function [label, energy] = knKmeans(K, init)
% Perform kernel kmeans clustering.
% Input:
% K: n x n data matrix
Expand Down Expand Up @@ -26,8 +26,4 @@
[val, label] = max(T-dot(T,E,2)/2,[],1);
end
energy = trace(K)-2*sum(val);
if nargout == 3
model.X = X;
model.label = label;
model.kn = kn;
end

0 comments on commit 50a654c

Please sign in to comment.