Skip to content

Commit

Permalink
fix(analytical): Fix Louvain algorithm's stop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
songqing committed Dec 25, 2024
1 parent 9699556 commit 5d0051a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions analytical_engine/apps/pregel/louvain/louvain_app_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ class LouvainAppBase
// after one pass if already decided halt, that means the pass yield no
// changes, so we halt computation.
if (current_super_step <= 14 ||
std::fabs(actual_quality - ctx.prev_quality()) <
min_quality_improvement) {
(actual_quality - ctx.prev_quality()) <= min_quality_improvement) {
// turn to sync community result
ctx.compute_context().set_superstep(sync_result_step);
syncCommunity(frag, ctx, messages);
Expand Down

0 comments on commit 5d0051a

Please sign in to comment.