API reference#

Every public function, generated from its numpydoc docstring. The main entry points are importable from the top-level package:

from thetan import TB, TS, tbscan, distance_matrix

Module

Contents

thetan.berserker

Thetan Berserker (TB), the main clustering method, and TBSCAN, which links TB centroids with DBSCAN to find non-convex clusters.

thetan.core

Thetan Sequential (TS), the one-pass primitive, and the cleanup steps that TB builds from it.

thetan.metrics

Distance functions shared by every Thetan algorithm.

thetan.dbscan

A standalone DBSCAN.

thetan.image

Helpers that turn images and volumes into feature rows that the clustering functions accept, and post-process segmentations.

thetan.accuracy

Scores that compare a clustering with true labels.

thetan.patchify

Split images into patches and stitch them back.

thetan.viz

Plotting helpers for clustering results.