Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a Fuzzy C-Means algorithm available for Python?

I have some dots in a 3 dimensional space and would like to cluster them. I know Pythons module "cluster", but it has only K-Means. Do you know a module which has FCM (Fuzzy C-Means)?

(If you know some other python modules which are related to clustering you could name them as a bonus. But the important question is the one for a FCM-algorithm in python.)

Matlab

It seems to be quite easy to use FCM in Matlab (example). Isn't something like this available for Python?

NumPy, SciPy and Sage

I didn't find FCM in NumPy, SciPy or Sage. I've downloaded the documentation and searched for it. No results

Python-cluster

It seems like the cluster module will add fuzzy C-Means with the next version (see Roadmap). But I need it now

like image 491
Martin Thoma Avatar asked Jul 18 '11 16:07

Martin Thoma


People also ask

Is Fuzzy C-means better than K means?

Fuzzy c-means clustering has can be considered a better algorithm compared to the k-Means algorithm. Unlike the k-Means algorithm where the data points exclusively belong to one cluster, in the case of the fuzzy c-means algorithm, the data point can belong to more than one cluster with a likelihood.

Is Fuzzy C-means supervised or unsupervised?

FCM is an unsupervised learning algorithm, which performs the classification of data samples without utilizing the class label information.

What does Fuzzy C-means do?

Fuzzy c-means (FCM) is a data clustering technique in which a data set is grouped into N clusters with every data point in the dataset belonging to every cluster to a certain degree.

What is the difference between K means and fuzzy c-means clustering?

K means clustering cluster the entire dataset into K number of cluster where a data should belong to only one cluster. Fuzzy c-means create k numbers of clusters and then assign each data to each cluster, but their will be a factor which will define how strongly the data belongs to that cluster.


1 Answers

PEACH will provide some Fuzzy C-Means functionality: http://code.google.com/p/peach/

However there doesn't seem to be any usable documentation as the wiki is empty. An example for using FCM with PEACH can be found on its website.

like image 141
Christian Goltz Avatar answered Nov 02 '22 23:11

Christian Goltz