Metaheuristic Clustering
As the name suggests, this is a repository for metaheuristic clustering algorithms, implemented in Python 3, that I could not find implemented elsewhere.
Implementations are designed to work with or without the sklearn implementation style.
Currently the algorithms implemented are:
- Artifical Bee Colony (ABC)
- Karaboga and C. Ozturk, "A novel clustering approach: Artificial Bee Colony (ABC) algorithm," Applied soft computing
- Shuffled Frog Leaping Algorithm (SFLA)
- Amiri, B., Fathian, M., & Maroosi, A. (2009). Application of shuffled frog-leaping algorithm on clustering. The International Journal of Advanced Manufacturing Technology, 45(1), 199-209.
Dependencies
scikit-learn - only needed for interop with scikit-learn
Example
Sklearn/Object style
data = X # your data
# SFLA Clustering
from metaheuristic_clustering.sfla import SFLAClustering
sfla_model = SFLAClustering()
sfla_labels = sfla_model.fit_predict(data)
# ABC Clustering
from metaheuristic_clustering.abc import ABCClustering
abc_model = ABCClustering()
abc_labels = abc_model.fit_predict(data)
Function style
import metaheuristic_clustering.util as util
data = X # your data
# SFLA Clustering
import metaheuristic_clustering.sfla as sfla
best_frog = sfla.sfla(data)
sfla_labels = util.get_labels(data, best_frog)
# ABC Clustering
import metaheuristic_clustering.abc as abc
best_bee = abc.abc(data)
abc_labels = util.get_labels(data, best_bee)
Sample Results
ABC
SFLA
Metadata
Release files for metaheuristic-clustering 0.0.2
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 |
|---|---|---|---|---|
| metaheuristic_clustering-0.0.2.tar.gz | 6.3 kB | Without provenance | Details for metaheuristic_clustering-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metaheuristic_clustering-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for metaheuristic_clustering-0.0.2-py3-none-any.whl |
Total release size: 17.6 kB
Release files / metaheuristic_clustering-0.0.2.tar.gz
| Download URL | metaheuristic_clustering-0.0.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0653ca075548ede4e0a94ba15bdde73a3b3ff91ed89bcbd06f706a27b5c7f753
|
|
BLAKE2b-256 checksum How to use checksums |
695a031ba94f8c8ce4ecec6270033966c70c9f93664eeb7937a62c623e3cd6e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / metaheuristic_clustering-0.0.2-py3-none-any.whl
| Download URL | metaheuristic_clustering-0.0.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad9db53cb87c5f0ace0d5de4336db8baf990761de1a3717453e4cdaa576e8df2
|
|
BLAKE2b-256 checksum How to use checksums |
d88a8630e43be6dc8d49e22126e243e5ec9f9c0d2f36844dede80d630a6b7164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for metaheuristic-clustering 0.0.2
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.