Top "K-means" questions

In statistics and data mining, k-means clustering is a method of cluster analysis which aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean (least squares).

k-means with selected initial centers

I am trying to k-means clustering with selected initial centroids. It says here that to specify your initial centers: init : {‘…

python numpy scikit-learn k-means
How can i cluster document using k-means (Flann with python)?

I want to cluster documents based on similarity. I haved tried ssdeep (similarity hashing), very fast but i was told …

nlp cluster-analysis data-mining k-means text-mining
Fast (< n^2) clustering algorithm

I have 1 million 5-dimensional points that I need to group into k clusters with k << 1 million. In each …

algorithm machine-learning cluster-analysis data-mining k-means
How would I implement k-means with TensorFlow?

The intro tutorial, which uses the built-in gradient descent optimizer, makes a lot of sense. However, k-means isn't just something …

k-means tensorflow
How to add k-means predicted clusters in a column to a dataframe in Python

I have a question about kmeans clustering in python. So I did the analysis that way: from sklearn.cluster import …

python pandas scikit-learn cluster-analysis k-means
Using K-means with cosine similarity - Python

I am trying to implement Kmeans algorithm in python which will use cosine distance instead of euclidean distance as distance …

python scikit-learn k-means cosine-similarity sklearn-pandas
How to convert type Row into Vector to feed to the KMeans

when i try to feed df2 to kmeans i get the following error clusters = KMeans.train(df2, 10, maxIterations=30, runs=10, initializationMode="…

apache-spark pyspark k-means apache-spark-mllib pyspark-sql
How to visualize kmeans clustering on multidimensional data

I am using kmeans clustering algorithm on mnist dataset and want to visualize the plots after clustering. So far I …

python visualization k-means
Distance between nodes and the centroid in a kmeans cluster?

Any option to extract the distance between the nodes and the centroid in a kmeans cluster. I have done Kmeans …

python-3.x scikit-learn k-means euclidean-distance
Outlier detection with k-means algorithm

I am hoping you can help me with my problem. I am trying to detect outliers with use of the …

r k-means outliers