Skip to content

Commit

Permalink
finetuning the communities selected by communityimageKDD
Browse files Browse the repository at this point in the history
  • Loading branch information
kkloste committed Jul 30, 2014
1 parent d29f3f1 commit 6069e0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions communityimageKDD.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
fmeas(trial,functionID) = 2*recalls(trial,functionID)*precisions(trial,functionID)/(recalls(trial,functionID)+precisions(trial,functionID));

if fmeas(trial,1)/fmeas(trial,2) > bestfmeas(numcom,1),
if recalls(trial,1) > 0.5,
if recalls(trial,1) > 0.2,
bestfmeas(numcom,1) = fmeas(trial,1)/fmeas(trial,2);
bestfmeas(numcom,2) = verts(trial);
bestprecs(numcom,1) = hkprec;
Expand All @@ -71,9 +71,11 @@
end

end
fprintf('CommSize = %i \t fmeas_ratio = %8.4f \t HKsetsize=%i PRsetsize=%i \t HKprec = %8.4f PRprec = %8.4f \t seedID = %i \n', ...
commsizes(numcom),bestfmeas(numcom,1),bestrecsize(numcom,1),bestrecsize(numcom,2), ...
bestprecs(numcom,1), bestprecs(numcom,2), bestfmeas(numcom,2));
if bestfmeas(numcom,1) > 0,
fprintf('CommSize = %i \t fmeas_ratio = %8.4f \t HKsetsize=%i PRsetsize=%i \t HKprec = %8.4f PRprec = %8.4f \t seedID = %i \n', ...
commsizes(numcom),bestfmeas(numcom,1),bestrecsize(numcom,1),bestrecsize(numcom,2), ...
bestprecs(numcom,1), bestprecs(numcom,2), bestfmeas(numcom,2));
end
end


Expand Down
2 changes: 1 addition & 1 deletion ppr/pprgrowKDD.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
p = inputParser;
p.addOptional('nruns',32,@isnumeric);
p.addOptional('alpha',0.99,@isnumeric);
p.addOptional('expands',[100,1000]);
p.addOptional('expands',[100,1000,3000]);
p.addOptional('maxexpand',Inf,@isnumeric);
p.addOptional('neighborhood',false,@islogical);
p.parse(varargin{:});
Expand Down

0 comments on commit 6069e0d

Please sign in to comment.