Lucas Gautheron 2 лет назад
Родитель
Сommit
9d86ccdc6b
1 измененных файлов с 2 добавлено и 2 удалено
  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: