Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 536 Bytes
classdef ClusterEval
% class for cluster evaluation
properties
accuracy
mutual_info
time
end
methods
function obj = ClusterEval(data, algorithm, options)
tic
model = algorithm(data.fea, options);
idx = model.cluster;
obj.time = toc;
res = bestMap(data.gnd, idx);
obj.accuracy = length(find(data.gnd==res))/length(data.gnd);
obj.mutual_info = MutualInfo(data.gnd, res);
end
end
end
Jump to Line
Something went wrong with that request. Please try again.