Skip to main content

clustering packages with DDCAL algorithm

Project description

Overview

A heuristic one dimensional clustering algorithm called DDCAL (Density Distribution Cluster Algorithm) that is based on iterative feature scaling. The algorithm aims as first order to even distribute data into clusters by considering as well as second order to minimize the variance inside each cluster and maximizing the distances between clusters.

The algorithm is designed to be used for visualization, e.g., on choropleth maps.

Basic Usage

pip install -i https://pypi.org/simple/ ddcal
from clustering.ddcal import DDCAL

# load data
frequencies = [0, 1, 1, 1, 5, 5, 5, 30, 88]

# initialize parameters
ddcal = DDCAL(n_clusters=3, feature_boundary_min=0.1, feature_boundary_max=0.49,
                  num_simulations=20, q_tolerance=0.45, q_tolerance_increase_step=0.5)

# execute DDCAL algorithm
ddcal.fit(frequencies)

# print/use results
print(ddcal.sorted_data)
print(ddcal.labels_sorted_data)

Supplemental Material

Supplemental material for the paper DDCAL: Evenly Distributing Data into High Density Clusters based on Iterative Feature Scaling can be found in the folder:

supplemental

Synthetic Data Sets

The synthetic data sets, which were used in the paper DDCAL: Evenly Distributing Data into High Density Clusters based on Iterative Feature Scaling which includes a description on each data set, can be found in the folder:

tests/data

Acknowledgements

"ICT of the Future" program - an initiative of the Federal Ministry for Climate Protection, Environment, Energy, Mobility, Innovation and Technology (BMK)

accessibility text

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

ddcal-1.0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

ddcal-1.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ddcal-1.0.1.tar.gz.

File metadata

  • Download URL: ddcal-1.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ddcal-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a1e0822317c8472005ab47c777814a9aeb12e95912d08845922d402d827b338c
MD5 a4fa5e03f58e50bc5df738d514999615
BLAKE2b-256 5c52feae3d95c7623a73291ac19f85c46a0185cabfcaa3450c68986109d6b7b6

See more details on using hashes here.

File details

Details for the file ddcal-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ddcal-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ddcal-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 027a6b880dc44e18332162a54eb82e33a9cdfe8a0edfc85247303c71c466b2a9
MD5 e81e656007e7c532fcfc6d1894cbaca7
BLAKE2b-256 c57943c37d0f34fb3ee238461bc74d868671f552c5076eaf058d53a3a07e284f

See more details on using hashes here.

Supported by

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