Browse Source

remove redundant lambda

Xi Ruoyao 4 years ago
parent
commit
3fd319c263
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -24,7 +24,7 @@ if __name__ == '__main__':
         x.append([e.lon, e.lat])
     x = np.array(x)
     db = DBSCAN(eps = 10/6400000, min_samples = 3,
-            metric = lambda x,y:metric.spherical_distance(x,y)).fit(x)
+            metric = metric.spherical_distance).fit(x)
     labels = db.labels_
     core_samples_mask = np.zeros_like(db.labels_, dtype = bool)
     core_samples_mask[db.core_sample_indices_] = True