Skip to main content

FINCH - First Integer Neighbor Clustering Hierarchy: A parameter-free fast clustering algorithm.

Project description

First Integer Neighbor Clustering Hierarchy (FINCH) Algorithm

alt text

FINCH is a parameter-free fast and scalable clustering algorithm. it stands out for its speed and clustering quality. The algorithm is described in our paper Efficient Parameter-free Clustering Using First Neighbor Relations published in CVPR 2019 . Read Paper.

Installation

The project is available in PyPI. To install run:

pip install finch-clust

Optional. Install PyNNDescent to get first neighbours for large data

To install finch with pynndescent run:

pip install "finch-clust[ann]"

Usage:

typically you would run:

from finch import FINCH
c, num_clust, req_c = FINCH(data)

You can set options e.g., required number of cluster or distance etc,

c, num_clust, req_c = FINCH(data, initial_rank=None, req_clust=None, distance='cosine', verbose=True)

For more details on meaning of input arguments check README in finch directory.

Matlab usage

A minimal correponding Matlab implementation is provided in the matlab directory.

Demos

The following demo notebooks are available to see the usage in clustering a dataset.

  1. Basic usage on 2D toy data
  2. Clustering STL-10 dataset with FINCH

Relevant tools built on FINCH

  • h-nne: See also our h-nne method which uses FINCH for fast dimenionality reduction and visualization applications.

  • TW-FINCH: Also see our TW-FINCH variant which is useful for video segmentation.

Citation

@inproceedings{finch,
    author    = {M. Saquib Sarfraz and Vivek Sharma and Rainer Stiefelhagen}, 
    title     = {Efficient Parameter-free Clustering Using First Neighbor Relations}, 
    booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    pages = {8934--8943}
    year  = {2019}
}

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

finch_clust-0.2.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

finch_clust-0.2.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file finch_clust-0.2.2.tar.gz.

File metadata

  • Download URL: finch_clust-0.2.2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for finch_clust-0.2.2.tar.gz
Algorithm Hash digest
SHA256 64edccc91cae9b3c398c8bad2aade0c790e61e49815ebcac3ae1c9fac598be76
MD5 885b9892c8d923e51581e5218470f504
BLAKE2b-256 2e92980a63be52fdbca0fdf719ec52b47f2ec47960900fda92c78ce6f3b6e6b9

See more details on using hashes here.

File details

Details for the file finch_clust-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: finch_clust-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for finch_clust-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87e8e249430b98f3b0877acc9aa160011d6cf2d8ae1b69652e2631009cae87db
MD5 26ebf0f288fe545f12be68ffaac0819e
BLAKE2b-256 40f9f44283919b18cd662ae4f1d7cffd128b8c2d826d5062339a53f8d17febe8

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