python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How calculate clusters coherence/quality?
I did embeddings with fasttext and I have clusters thanks to KMeans.
I would like to calculate similarities inside each cluster to check if the sentences inside are well clustered. I want to keep sent...
codelifevcd
Votes: 0
Answers: 1
How to do clustering with sklearn having classes in my data set?
I have a dataset (example):
id f1 f2 f3
a1 4 8 9
a2 9 0 0
a3 4 11 7
a4 3 3 0
a5 1 8 1
I can use f1, f2 and f3 to do K-means clustering and get ...
gh1222
Votes: 0
Answers: 1
Python: Function Error TypeError: tuple indices must be integers or slices, not tuple & TypeError: 'int' object is not subscriptable
Have been applying below code on my function, but regularly getting an error. Please can you explain where am i going wrong
clusters = np.zeros((len(dataset),1))
def assign(centroids,dataset,clusters...
Ash
Votes: 0
Answers: 1
Finding the nearest point to the cluster centroids in k-means clustering method
I have a set of points in the coordinate system and I am clustering them into 50 clusters using the k-means clustering method. After normalizing coordinates of each point, I find centroids of clusters...
sorour
Votes: 0
Answers: 0