Skip to content

Commit cc487e7

Browse files
author
CindeeM
committed
NF: change in delta Q esitmate, provide feedback to user, this will be removed in future release
1 parent 8fc3293 commit cc487e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainx/modularity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,10 +1380,10 @@ def _divide_partition(p, max_div=np.inf):
13801380
Bc_mask[s==1, :] = 0
13811381
Bc_mask[:, s==1] = 0
13821382
Bc = (B_ * Bc_mask).sum(axis=0)
1383-
Bc = B_ - np.diag(Bc)
1383+
Bc = B_ - Bc
13841384
q = s[None, :].dot(Bc).dot(s) / (4.0 * graph_A_.number_of_edges())
13851385
q2 = s[None, :].dot(B_).dot(s) / (4.0 * graph_A_.number_of_edges())
1386-
print p, q, q2
1386+
print 'orig delta q', q2, 'new delta q', q
13871387
if q <= 0:
13881388
return [p]
13891389

0 commit comments

Comments
 (0)