Skip to main content

Delaunay Triangulation Clustering: density-robust clustering with built-in outlier detection

Project description

DelTriC - Delaunay Triangulation Clustering

Density-robust clustering with built-in outlier detection.

DelTriC is a clustering algorithm based on Delaunay triangulation that excels at simultaneously finding clusters of arbitrary shape and detecting outliers.

Key Features

  • No need to specify k - automatically determines the number of clusters
  • Arbitrary cluster shapes - not limited to spherical clusters
  • Built-in outlier detection - identifies anomalies as a first-class output
  • Auto-param mode - sensible defaults computed from your data
  • scikit-learn compatible - fit(), fit_predict(), get_params(), set_params()

Installation

pip install deltric

Quick Start

from deltric import DelTriC

model = DelTriC()
labels = model.fit_predict(X)

# labels == -1  => outlier
# labels >=  0  => cluster assignment

How It Works

  1. Project high-dimensional data to 2D using UMAP or PCA
  2. Triangulate via Delaunay - every point connected to its natural neighbors
  3. Prune edges longer than a statistically-thresholded length
  4. Extract clusters as connected components of the remaining graph
  5. Detect outliers - small connected components and isolated points

API

DelTriC(
    prune_param="auto",
    merge_param="auto",
    min_cluster_size=10,
    dim_reduction="auto",
    back_proj=True,
    anomaly_sensitivity="auto",
    prune_mode="neighbor_bridge",
    prune_regime="auto",
    projected_hard_limit=True,
    random_state=42,
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltric-0.3.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deltric-0.3.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file deltric-0.3.0.tar.gz.

File metadata

  • Download URL: deltric-0.3.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for deltric-0.3.0.tar.gz
Algorithm Hash digest
SHA256 da808332e5da61bc75dd1734309dc29507bb311eb8817a264aff8f78a97fd9da
MD5 055efd323428c61e9543636895d494f4
BLAKE2b-256 6a399219d08bbb58fe1116eb43ee37c4a6ca2b5ff9239fb7818de97508f8ae38

See more details on using hashes here.

File details

Details for the file deltric-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: deltric-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for deltric-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b909da7cb1243164f9c98a891a5b561499603cae59cdb8ef85c6d74f993aba2
MD5 70632613fb66e5cd32a309d100223d3c
BLAKE2b-256 0b59a9a2664fa8737ca38666b5e4018de2a3e8e816368246a4b9fec28de66f29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page