sklearn and pyclustering style implementations of SFLA and ABC
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metaheuristic_clustering-0.0.2.tar.gz.
File metadata
- Download URL: metaheuristic_clustering-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0653ca075548ede4e0a94ba15bdde73a3b3ff91ed89bcbd06f706a27b5c7f753
|
|
| MD5 |
8f168c65a8b8ac8f78fb304323107b69
|
|
| BLAKE2b-256 |
695a031ba94f8c8ce4ecec6270033966c70c9f93664eeb7937a62c623e3cd6e8
|
File details
Details for the file metaheuristic_clustering-0.0.2-py3-none-any.whl.
File metadata
- Download URL: metaheuristic_clustering-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad9db53cb87c5f0ace0d5de4336db8baf990761de1a3717453e4cdaa576e8df2
|
|
| MD5 |
8fecb9657ac71b008cc2f59b6fc0fc7a
|
|
| BLAKE2b-256 |
d88a8630e43be6dc8d49e22126e243e5ec9f9c0d2f36844dede80d630a6b7164
|