gnn_tracking.postprocessing.fastrescanner#

Module Contents#

Classes#

DBSCANFastRescan

Class to perform DBSCAN clustering with fast rescanning.

class gnn_tracking.postprocessing.fastrescanner.DBSCANFastRescan(x: numpy.ndarray, max_eps: float = 1.0, *, n_jobs: int | None = None)#

Class to perform DBSCAN clustering with fast rescanning.

Parameters:
  • x – Data to cluster

  • max_eps – Maximum epsilon to use during rescanning. Set to as low as possible to save time.

  • n_jobs – The number of parallel jobs to run.

_reset_graph(max_eps: float) None#

Set and store the radius_neighbors graph to use for clustering.

cluster(eps: float = 1.0, min_pts: int = 1)#

Perform clustering on given data with DBSCAN

Parameters:
  • eps – Epsilon to use for clustering

  • min_pts – Minimum number of points to form a cluster