[aligner] Remove useless arguments from findneighbours_clustering()
authorSimon Chabot <simon.chabot@logilab.fr>
Tue, 13 Nov 2012 16:46:16 +0100
changeset 128 228d0da19e3f
parent 127 8f51d6d0c3be
child 129 7120da9101de
[aligner] Remove useless arguments from findneighbours_clustering()
aligner.py
--- a/aligner.py	Mon Nov 26 10:13:34 2012 +0100
+++ b/aligner.py	Tue Nov 13 16:46:16 2012 +0100
@@ -80,7 +80,7 @@
             neighbours.pop()
     return neighbours
 
-def findneighbours_clustering(alignset, targetset, indexes=(1, 1), threshold=0.1,
+def findneighbours_clustering(alignset, targetset, indexes=(1, 1),
                               mode='kmeans', n_clusters=None):
     """ Find the neigbhours using clustering (kmeans or minibatchkmeans)
     """
@@ -154,8 +154,7 @@
     elif mode in set(['kmeans', 'minibatch']):
         try:
             from sklearn import cluster
-            return findneighbours_clustering(alignset, targetset, indexes, neighbours_threshold,
-                                             mode, n_clusters)
+            return findneighbours_clustering(alignset, targetset, indexes, mode, n_clusters)
         except:
             raise NotImplementedError('Scikit learn does not seem to be installed')