Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Clustering Mixed Data Types: Algorithm Selection, Distance Measurement, and Feature Weighting

I have a database of 74,000 records with 29 features. Fourteen of these features are categorical and are either 0 or 1, while the other 15 features are continuous and have been normalized and scaled ...
peiman razavi's user avatar
1 vote
2 answers
93 views

Can I use K-Means to group customers based on a single variable?

I have a test dataset of 11m records. The dataset contains a global customer id and spend figure. I need to group customers into the following categories: 0 Low 1 Low/Med 2 Med 3 Med/High 4 High I ...
John Edwards's user avatar
0 votes
1 answer
108 views

Time Series clustering: clustering a dictionary of time series

I'm working on classifying times series to find clear pattern of use. My data is collected from clients of a telecom company, and we want to detect pattern of the amount of data consumed by clients ...
Ilias ETTOUKI's user avatar
1 vote
1 answer
377 views

standardization/normalization for 1D clustering?

I have two input variables revenue and age. Am trying to find different bins within that variables. For ex: I have ...
The Great's user avatar
  • 3,342
0 votes
1 answer
184 views

The resulting image file is even larger than original when using K-means to do image compression

I am trying to compress jpeg file [Original Picture] [Compressed Picture with K-means using K=10] However, the original one is 85K while the compressed one is 101K? Here is the code I use: ...
Aaron's user avatar
  • 11
1 vote
0 answers
172 views

I don't understand why each time Kmeans finds the same centroid given different initialization?

The k-means algorithm does the following: Given a set of points, we first choose k random points to be the initial centroids. We then create k clusters. The ith cluster contains the points nearest to ...
Aaron's user avatar
  • 11
1 vote
2 answers
595 views

K-Means output the similar to each other cluster

I am trying to run K-Means on my data set of house price prediction problem. After running it, the output of the model seems wrong because the graphs look the same as each other. This is my code: <...
huy's user avatar
  • 113
0 votes
0 answers
33 views

k means in python with BIC [duplicate]

I am new to ML. I am trying to implement k-means which uses a BIC function that takes cluster and data points as arguments and returns BIC value. I need a function to find best k value that is ...
KSK's user avatar
  • 101
1 vote
1 answer
359 views

Should I scale when clustering text data using K-means?

I want to cluster a folder of texts. I created a data file where for each text, I write whether a certain word appears in it or not. I want to cluster according to this. So my matrix is globally only ...
Marine Galantin's user avatar
0 votes
2 answers
656 views

K-means which normalization fits

Hi am working on a business dataset, where I want to group the participant in k-means based on some features. The problem is I have to create this features upfront, so that I combine different ...
PV8's user avatar
  • 236
0 votes
1 answer
428 views

Formatting input data to Scikit learn for Kmean and PCA

I am very confused about the data that feeds to Kmean and PCA algorithm using Scikit Learn command in Python. I searched a lot in the internet but no where I found the clear answer. I have $X$, a $m \...
user59419's user avatar
  • 281
1 vote
0 answers
35 views

Identify Phrases Not in Training Set (Unsupervised)

I'm trying to train an unsupervised machine learning algorithm to learn a vocabulary and if it is given a word, it can predict how close that word is to what it already knows. Only issue is my ...
ethanenglish's user avatar
2 votes
0 answers
420 views

A problem with implementing PCA-guided k-means

I am new to machine learning. I am reading the papers K-means Clustering via Principal Component Analysis and PCA-guided search for K-means. But there are too many mathematical proofs in these papers. ...
Fanny ZMN's user avatar
1 vote
1 answer
3k views

K-Means Clustering Not Working As Expcected

I have a script that I'm testing with in Python3 with Scikit to cluster terms based on either words or character n-grams. Basically, it's fed a list of training data with corresponding labels. For ...
user2694306's user avatar