Skip to main content

A package to assess cluster tendency

Project description

pyclustertend Build Status PyPi Status Documentation Status Downloads Downloads

Presentation :

pyclustertend is a python package to do cluster tendency. Cluster tendency consist to assess if clustering algorithms are relevant for a dataset.

Three methods for assessing cluster tendency are currently implemented :

  • Hopkins Statistics
  • VAT
  • Metric based method (silhouette, calinksi, davies bouldin)

Installation :

    pip install pyclustertend

Usage :

Example Hopkins :

    >>>from sklearn import datasets
    >>>from pyclustertend import hopkins
    >>>from sklearn.preprocessing import scale
    >>>X = scale(datasets.load_iris().data)
    >>>hopkins(X,150)
    0.18950453452838564

Example VAT :

    >>>from sklearn import datasets
    >>>from pyclustertend import vat
    >>>from sklearn.preprocessing import scale
    >>>X = scale(datasets.load_iris().data)
    >>>vat(X)

Example Metric :

    >>>from sklearn import datasets
    >>>from pyclustertend import assess_tendency_by_metrics
    >>>from sklearn.preprocessing import scale
    >>>X = scale(datasets.load_iris().data)
    >>>assess_tendency_by_metrics(X)
    2.0

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

pyclustertend-1.3.3.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

pyclustertend-1.3.3-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

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