Some functions for clustering
Tested against Windows / Python 3.11 / Anaconda
pip install clusterzeug
from clusterzeug import (
birchcluster,
gaussianmixture,
opticscluster,
hdbscancluster,
dbscan,
agglomerativeclustering,
spectralclustering,
kmeanscluster,
minibatchkmeanscluster,
afinity_propagation,
mean_shift,
)
import numpy as np
import random
data = np.array(
[[random.randint(1, 1000), random.randint(1, 1000)] for _ in range(100)],
dtype=np.int64,
)
a1 = birchcluster(data, n_clusters=10)
a2 = gaussianmixture(data, n_components=5)
a3 = opticscluster(data, min_samples=5)
a4 = hdbscancluster(data, min_cluster_size=5)
a5 = dbscan(data, eps=0.5, min_samples=5)
a6 = agglomerativeclustering(data, n_clusters=10)
a7 = spectralclustering(data, n_clusters=10)
res = kmeanscluster(data, n_clusters=10)
print(res)
res2 = minibatchkmeanscluster(data, n_clusters=10)
print(res2)
aff = afinity_propagation(data, damping=0.5, preference=-10)
print(aff)
ms = mean_shift(data,bandwidth=2.0)
print(ms)
Metadata
Release files for clusterzeug 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clusterzeug-0.10.tar.gz | 21.5 kB | Without provenance | Details for clusterzeug-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clusterzeug-0.10-py3-none-any.whl | Python 3 | none | any | Details for clusterzeug-0.10-py3-none-any.whl |
Total release size: 43.5 kB
Release files / clusterzeug-0.10.tar.gz
| Download URL | clusterzeug-0.10.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
358c62f02d152995ffa8173c3293818333941e80fffd59f562755da2bc5a6112
|
|
BLAKE2b-256 checksum How to use checksums |
bfeae76ebb8e944c8fb3fda280e2110bbd84ea693e6104bf3eb368724efec8ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / clusterzeug-0.10-py3-none-any.whl
| Download URL | clusterzeug-0.10-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c16824e37716a622be488df741fe08531aa1cbfadcec5b9e56f2998ef3fd7042
|
|
BLAKE2b-256 checksum How to use checksums |
4a4f2047de8e050a02fa3eb97b2d674e902045413aaed3d84822757a725e335a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for clusterzeug 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.