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.1.tar.gz (19.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.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deltric-0.3.1.tar.gz
  • Upload date:
  • Size: 19.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.1.tar.gz
Algorithm Hash digest
SHA256 5b9da528b4419a4bef0b77a0b947edce378e0ba9a75c6195e3c456b9b8f16f7d
MD5 dcdb0a72834b7abf41a64cd152e26253
BLAKE2b-256 c082120ac2a8d898d8a93b6fad38b8bad042d4261ed4f67b841cacf1295ee1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltric-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc763925a0a43eadff40f83e773cfe4d146b9a8f0cc15fbf0c0b385a41c70532
MD5 7e464224d549c7664efd305436865d4b
BLAKE2b-256 22cb7e562d8591e4bb9dd4e2ccd2c256f5043fb241161451b5aedbe7d156e64d

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