Fuzzy clustering algorithms are used in cluster analysis which is "fuzzy" in the same sense as fuzzy logic.
Questions tagged [fuzzy-c-means]
44 questions
31
votes
4 answers
whats is the difference between "k means" and "fuzzy c means" objective functions?
I am trying to see if the performance of both can be compared based on the objective functions they work on?

n0ob
- 1,275
- 8
- 20
- 23
12
votes
4 answers
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…

Martin Thoma
- 124,992
- 159
- 614
- 958
9
votes
1 answer
Clustering and Bayes classifiers Matlab
So I am at a cross roads on what to do next, I set out to learn and apply some machine learning algorithms on a complicated dataset and I have now done this. My plan from the very beginning was to combine two possible classifiers in an attempt to…

G Gr
- 6,030
- 20
- 91
- 184
3
votes
2 answers
How to calculate fuzzy performance index and normalized classification entropy in R
I am running Fuzzy C-Means Clustering using e1071 package. I want to decide the optimum number of clusters based on fuzzy performance index (FPI) (extent of fuzziness) and normalized classification entropy (NCE) (degree of disorganization of…

UseR10085
- 7,120
- 3
- 24
- 54
3
votes
1 answer
Fuzzy clustering on Python with Iris dataset
I am working on fuzzy c-means clustering of iris dataset, however can not visualize due to some errors.Using this tutorial I wrote the following for the iris, however it shows error called "AttributeError: shape". This is my code:
from sklearn…

python_beginner
- 43
- 1
- 1
- 5
2
votes
2 answers
How to install fuzzy c-means package in anaconda?
I tried pip install fcmeans and pip install f-c-means, but neither of them worked.

Eltun Əhmədov
- 31
- 1
2
votes
1 answer
How to apply fuzzy c-means segmentation for 2D images?
I am working on 2D medical images for segmentation purpose, where I implement fuzzy c-means. I get the error "ValueError: sequence too large; cannot be greater than 32". I need to show a segmentation of whole image through fuzzy c-means. Here is the…

Uzair
- 33
- 9
2
votes
0 answers
How to plot boudaries around clusters in fuzzy c-means (python)
I am using unsupervised fuzzy c-means for clustering with 3 clusters. From the clustering I obtain a matrix with coordinates of centroids and a matrix with the membership of each point in the three different clusters. I want to plot a decision…

ophelia
- 31
- 1
2
votes
0 answers
Visualising Cluster Shape for Clusters Generated by Fuzzy C Means Clustering
I am trying to plot a visualization for the clusters obtained from Fuzzy C-Means clustering algorithm. I want to plot the contours along with the data points as shown in the following figure using Python.
How do I proceed with this?

user2150703
- 193
- 3
- 7
2
votes
1 answer
Difference between k means and c means
I m trying to implement the k-means algorithm so i need to know what is the difference in the algorithm for k means and c means? Are they same with different names or is there any difference?

Rohan
- 21
- 2
1
vote
1 answer
How to Show "Fuzziness" in Fuzzy Clustering Plot Python
I have a normally distributed 2D dataset, and I am using the fcmeans library to perform fuzzy c-means clustering. I am able to plot the clusters with the red point indicating the cluster center. However, I need to show a gradient where the fuzziness…

CasperCodes
- 107
- 4
1
vote
1 answer
ValidationError in fuzzy-c-means
I have tried to run in both jupyter notebook and colab but still getting this error for fcmeans.
But it's working fine in different laptop.
This is the code used to split dataset
# Stratified Sampling using Scikit-learn's Stratified Shuffle Split…

partho
- 69
- 11
1
vote
0 answers
How can I cluster 3-dimensional data?
For a project in my data mining class, I am to perform fuzzy-c means clustering on a data set, where each data point has 3 axes (I googled and that's apparently the correct way to pluralize 'axis'). I'm not exactly sure how I would do so, especially…

A. Salas
- 77
- 1
- 7
1
vote
0 answers
ValueError: cannot reshape array of size 108900 into shape (200,200,3)
i am new in python and I face this error can anyone help me?
import numpy as np
for index,rgb_img in enumerate(list_img):
img = np.reshape(rgb_img, (200,200,3)).astype(np.uint8)
shape = np.shape(img)
Traceback (most recent call last):
…

Tan Jia Jin
- 39
- 4
1
vote
3 answers
fuzzy-c-means - setting initial number of clusters=6, but only 4 cluster labels generated
I use the fuzzy-c-means clustering implementation and I would like the data X to form the number of clusters i define in the algorithm(I beleive that is how it works). But the behavior is confusing.
cm = FCM(n_clusters=6)
cm.fit(X)
This code…

hakuna_code
- 783
- 7
- 16