Skip to main content

sklearn and pyclustering style implementations of SFLA and ABC

Project description

Metaheuristic Clustering

version status

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

Numpy

PyClustering

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

Graphs of ABC Results

SFLA

Graphs of SLFA Results

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

metaheuristic_clustering-0.0.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metaheuristic_clustering-0.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file metaheuristic_clustering-0.0.2.tar.gz.

File metadata

File hashes

Hashes for metaheuristic_clustering-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0653ca075548ede4e0a94ba15bdde73a3b3ff91ed89bcbd06f706a27b5c7f753
MD5 8f168c65a8b8ac8f78fb304323107b69
BLAKE2b-256 695a031ba94f8c8ce4ecec6270033966c70c9f93664eeb7937a62c623e3cd6e8

See more details on using hashes here.

File details

Details for the file metaheuristic_clustering-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for metaheuristic_clustering-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad9db53cb87c5f0ace0d5de4336db8baf990761de1a3717453e4cdaa576e8df2
MD5 8fecb9657ac71b008cc2f59b6fc0fc7a
BLAKE2b-256 d88a8630e43be6dc8d49e22126e243e5ec9f9c0d2f36844dede80d630a6b7164

See more details on using hashes here.

Supported by

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