Browse Source

slightly improved comments

Lucas Gautheron 2 years ago
parent
commit
9d86ccdc6b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      annotations/feed-annotations.py

+ 2 - 2
annotations/feed-annotations.py

@@ -24,8 +24,8 @@ def majority_choice(values):
     counts = values.value_counts(sort = True)
     counts = counts[counts == counts[0]]
 
-    # return the majority choice if it exists
-    # otherwise, do a random pick
+    # return the majority choice if it is unambiguous
+    # otherwise, pick randomly among the candidates
     if len(counts) <= 1:
         return counts.index[0]
     else: