Giter Site home page Giter Site logo

smb-h / fuzzy-c-means Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 79 KB

Fuzzy C Mean clustering algorithm

Home Page: https://github.com/smb-h/fuzzy-c-means

License: GNU General Public License v3.0

Python 100.00%
ai algorithms artificial-intelligence clustering fuzzy-c-means machine-learning ml

fuzzy-c-means's Introduction

Fuzzy C-means

Python Implementation of Fuzzy C-means clustering algorithm

The Fuzzy C-means (FCM) algorithm is a clustering technique that allows data points to belong to multiple clusters with varying degrees of membership. It is an extension of the traditional k-means clustering algorithm, which assigns each data point to a single cluster.

The FCM algorithm works by minimizing an objective function that measures the quality of clustering. The algorithm involves the following steps:

  1. Initialize the fuzzy partition matrix randomly, where each element represents the degree of membership of a data point to a cluster.
  2. Calculate the cluster centroids based on the current fuzzy partition matrix.
  3. Update the fuzzy partition matrix based on the new cluster centroids and a fuzziness parameter (m), which controls the degree of fuzziness of the clustering.
  4. Repeat steps 2 and 3 until the changes in the fuzzy partition matrix are below a predefined threshold or a maximum number of iterations have been reached.

The fuzziness parameter (m) affects the degree to which data points can belong to multiple clusters. When m is close to 1, the FCM algorithm behaves more like the traditional k-means algorithm, whereas when m is larger, the algorithm allows for a higher degree of fuzziness in the clustering.

The FCM algorithm is particularly useful in situations where the boundaries between clusters are not well-defined, and data points can naturally belong to multiple clusters. Applications of FCM can be found in various domains, including image processing, pattern recognition, and data mining.

The main script is available at FuzzyCMean.py

fuzzy-c-means's People

Contributors

dependabot[bot] avatar smb-h avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.