flake8 clustering
@@ -5,7 +5,6 @@ from future.utils import viewvalues
import itertools
from collections import defaultdict
import array
-import warnings
import logging
import numpy
@@ -14,6 +13,7 @@ import hcluster
logger = logging.getLogger(__name__)
+
def connected_components(edgelist, max_components):
if len(edgelist) == 0:
@@ -182,6 +182,7 @@ def confidences(cluster, condensed_distances, d) :
scores = 1 - scores
return scores
+
def greedyMatching(dupes, threshold=0.5):
A = set()
B = set()
