Skip to content

Commit 038d24a

Browse files
authored
fixes
1 parent be7c74b commit 038d24a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PairwiseComparisons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,11 @@ def graphKeep(Graphes,labels):
729729
minority =0
730730
NbMino=len(labels)-sum(labels)
731731
keep = []
732+
NbMino = 0
732733
count=0
733-
NbMino=0
734-
threshold = 1000
735734
graphs=[]
736735
for i in range(len(labels)):
737-
if labels[i]==minority and NbMino<threshold:
736+
if labels[i]==minority:
738737
NbMino=NbMino+1
739738
keep.append(i)
740739
complete=NbMino
@@ -743,6 +742,7 @@ def graphKeep(Graphes,labels):
743742
if count<complete:
744743
count=count+1
745744
keep.append(i)
745+
746746
return keep
747747

748748

0 commit comments

Comments
 (0)