{
  "name": "Clustering Algorithm Specifications in Scikit-Learn and Scientific Computing",
  "description": "Comparative technical parameters, complexity bounds, noise handling, and geometry capabilities of density-based and partitioning clustering algorithms in scikit-learn and related scientific libraries.",
  "page": "https://casrai.org/guides/sklearn-dbscan",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-27T12:15:00Z",
  "temporalCoverage": "1996/2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Algorithm",
      "unit": "",
      "description": "Clustering model class or implementation"
    },
    {
      "name": "Primary Parameters",
      "unit": "",
      "description": "Key hyperparameters requiring configuration"
    },
    {
      "name": "Cluster Geometry",
      "unit": "",
      "description": "Types of geometric shapes the algorithm can resolve"
    },
    {
      "name": "Noise Handling",
      "unit": "",
      "description": "Mechanism for isolating outliers and unclustered samples"
    },
    {
      "name": "Time Complexity",
      "unit": "",
      "description": "Algorithmic time complexity bound"
    },
    {
      "name": "Memory Complexity",
      "unit": "",
      "description": "Algorithmic spatial memory complexity"
    },
    {
      "name": "Transductive",
      "unit": "",
      "description": "Whether model is restricted to fit data without out-of-sample predict()"
    }
  ],
  "rows": [
    {
      "Algorithm": "sklearn DBSCAN",
      "Primary Parameters": "eps, min_samples, metric",
      "Cluster Geometry": "Arbitrary non-convex shapes",
      "Noise Handling": "Isolates noise as -1 label",
      "Time Complexity": "O(n log n) with tree, O(n^2) brute",
      "Memory Complexity": "O(n) tree, O(n^2) precomputed",
      "Transductive": "Yes"
    },
    {
      "Algorithm": "sklearn HDBSCAN",
      "Primary Parameters": "min_cluster_size, min_samples",
      "Cluster Geometry": "Varying density non-convex shapes",
      "Noise Handling": "Isolates noise and gives outlier scores",
      "Time Complexity": "O(n log n) with dual-tree Boruvka",
      "Memory Complexity": "O(n) core space",
      "Transductive": "Yes"
    },
    {
      "Algorithm": "sklearn OPTICS",
      "Primary Parameters": "max_eps, min_samples, xi",
      "Cluster Geometry": "Multi-density arbitrary shapes",
      "Noise Handling": "Identifies noise through reachability plots",
      "Time Complexity": "O(n log n) to O(n^2)",
      "Memory Complexity": "O(n) to O(n^2)",
      "Transductive": "Yes"
    },
    {
      "Algorithm": "sklearn KMeans",
      "Primary Parameters": "n_clusters, init, n_init",
      "Cluster Geometry": "Convex isotropic spherical clusters",
      "Noise Handling": "Assigns all samples to nearest centroid",
      "Time Complexity": "O(n * k * d * i)",
      "Memory Complexity": "O(n * d + k * d)",
      "Transductive": "No"
    },
    {
      "Algorithm": "sklearn Agglomerative",
      "Primary Parameters": "n_clusters, linkage, metric",
      "Cluster Geometry": "Depends on linkage (single finds chains)",
      "Noise Handling": "No native noise handling without cutoffs",
      "Time Complexity": "O(n^2) to O(n^3)",
      "Memory Complexity": "O(n^2) distance matrix",
      "Transductive": "Yes"
    },
    {
      "Algorithm": "sklearn Birch",
      "Primary Parameters": "threshold, branching_factor",
      "Cluster Geometry": "Spherical subclusters along CF-Tree",
      "Noise Handling": "Global clustering assigns outliers",
      "Time Complexity": "O(n * d)",
      "Memory Complexity": "O(n * d) tree memory",
      "Transductive": "No"
    }
  ],
  "sources": [
    {
      "title": "scikit-learn Clustering User Guide",
      "url": "https://scikit-learn.org/stable/modules/clustering.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "Schubert et al. (2017) DBSCAN Revisited, Revisited",
      "url": "https://doi.org/10.1145/3068335",
      "accessed": "2026-11-15"
    },
    {
      "title": "Ester et al. (1996) KDD-96 DBSCAN Paper",
      "url": "https://dl.acm.org/doi/10.5555/3001460.3001507",
      "accessed": "2026-11-15"
    }
  ]
}