Skip to main content

All Questions

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

Identify predictors for clustering output?

I have a dataset with variables collected years ago, and many variables collected this year as outcome variables. I want to combine all the variables collected this year to get one outcome, e.g. ...
NPpsy's user avatar
  • 43
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
0 votes
0 answers
25 views

calculation of the C-index clustering [duplicate]

Can anyone give me an example of working on the C-index clustering validity test, but calculating manually??
Raaa's user avatar
  • 1
3 votes
1 answer
28 views

What is "clall" in index.Gap in "clusterSim" R package?

I am using the "clusterSim" package in my project (https://cran.r-project.org/web/packages/clusterSim/clusterSim.pdf, page 39) and I do not understand the meaning of the "clall" ...
user2702's user avatar
0 votes
1 answer
20 views

K means clustering of image with k=1 vs mean of all pixels

I have relatively uniformly colored images and I extracted colors using k-means. k means 1 showed the best results for my modeling purposes, k means 2 not so much, and with k-means 3 there ceased to ...
phil27's user avatar
  • 1
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
1 vote
1 answer
339 views

Unsupervised learning: How to identify differences between clusters?

I'm learning about unsupervised learning and I tried to use KMeans, AgglomerativeClustering and DBSCAN on the same datase. The result was ok, they seems to work fine according silhouette_score() ...
Antonio Caipora's user avatar
1 vote
0 answers
48 views

Can K-means put most of the noise in the same cluster?

I am working on clustering text data (very short sentences) vectorized with tf-idf. The data are characterized by high sparseness and the presence of abundant noise (considered here as documents that ...
zurgo's user avatar
  • 11
2 votes
2 answers
1k views

Time series clustering on large data

I am trying to do K-means clustering on my data which has time series length of 3700 and for (latitude,longitude) points of around 6000 in length. However, timeseries clustering using tslearn package ...
Vinayak Huggannavar's user avatar
1 vote
1 answer
153 views

If I convert continuous data into ordinal discrete data, but number of the class is 100(1 class per 1 percentile), can I say this is 'continuous'?

I have some continuous data, and want to do kmeans clustering with this. But weirdly when I did kmean clustering with this data, the outcome was very conflicted with my presumption. So I decided to do ...
hogu's user avatar
  • 23
0 votes
0 answers
28 views

Regarding kmeans clustering, is it ok if I set the number of clusters just to get appropriate number of data of target cluster that I'm interested in?

For example, let me suppose that I have 100 thousands of geospatial data in my dataset, and I want to extract certain group that which is the most crucial. So I decided to do clustering and pick 'one ...
hogu's user avatar
  • 23
2 votes
2 answers
883 views

Jenks Natural breaks - Interpreting Goodness of Variance Fit

I am trying to find breaks in a multiple continuous type variables. So, I tried the jenks natural breaks algorithm. Based on the code from here, I managed to find ...
The Great's user avatar
  • 3,342
1 vote
1 answer
60 views

Does statistically simple algos qualify as AI algos?

We have a customer purchase transaction history data with variables like below recency - how recently they bought? frequency - How often they bought? monetary - How much value did they bring to the ...
The Great's user avatar
  • 3,342
1 vote
1 answer
170 views

Features differ between classes

Good evening everyone. Regarding the topic related to Sparse Clustering (for example K-Means). For example, in "Witten DM, Tibshirani R. A framework for feature selection in clustering" the ...
Alessandro Pio Budetti's user avatar
1 vote
0 answers
99 views

Statistical method for finding homogeneous groups of curves

I need to divide a set of 100 or more response curves into groups. These curves are formed by backscattering intensity along a range of frequencies. Basically, each curve represents the intensity in ...
il nibbio'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
2 votes
1 answer
59 views

Infer limits of unscaled values from their standardized values - Clustering

I am working on a clustering problem and I have some skewed variables. So, I log transform them and use them in clustering. However, instead of multivariate clustering, I do multiple univariate ...
The Great's user avatar
  • 3,342
2 votes
1 answer
116 views

Converting unsupervised to supervised problem - Overfitting - bad?

I am working on a customer segmentation using 5 features such as recency, frequency, monetary, tenure, unique_product_cnt etc. So, I did a RFM based segmentation where I used ...
The Great's user avatar
  • 3,342
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
2 votes
1 answer
5k views

silhouette score vs Distortion score

I am working on segmenting my customers with clustering. My dataset size is 7315 rows and 30 features. So, as a beginner to clustering, I passed all my 29 features (excluding id column) to the cluster....
The Great's user avatar
  • 3,342
2 votes
1 answer
104 views

Why not link features instead of selecting them - Clustering

Currently, I am working on customer segmentation using their purchase data. I plan to use clustering techniques. So, my data has below info for each customer (9 features and 1 id field) Now I am ...
The Great's user avatar
  • 3,342
2 votes
1 answer
461 views

Meaningful to retrieve original value after standardization using clustering

I already referred these posts here and here. Currently, I am working on customer segmentation using their purchase data. So, my data has below info for each customer Based on the above linked posts ...
The Great's user avatar
  • 3,342
1 vote
1 answer
523 views

RFM Customer segmentation - Why Avg monetary value instead of total monetary value?

I am trying to segment our customers based on their purchase data. And I came to know about the RFM technique (Recency, Frequency and Monetary) through these posts here, here etc. Recency - How ...
The Great's user avatar
  • 3,342
2 votes
1 answer
599 views

Confusion on why the value of SSE is lower when a cluster looks distorted on the plot

I have a dataset of shape (29088, 11). When I apply the Kmeans where K=2 I get the following plot: Cluster C0 has 8554 points (in blue) and cluster C1 has 20534 ...
Dave's user avatar
  • 171
0 votes
0 answers
32 views

K-Means clustering should cluster data evenly distributed or unevenly distributed? [duplicate]

I am clustering customers using their stay time on our web sites. When I only use one variable, time, for K-Means clustering with 10 clusters, customers look unevenly distributed to each clusters. ...
xabzakabecd's user avatar
  • 3,585
1 vote
0 answers
58 views

K means clustering analysis to define geological facies using 2 attributes (ERT & seismic)

dear all. Currently I am doing a project where the goal is to define geological facies of an area by using ML. The method that we are doing is k-means (we have no labels beforehand) and we are using ...
kbmv's user avatar
  • 11
2 votes
1 answer
731 views

Scaling a power law distribution for k-means clustering

For my project I want to group some products by using a few variables. For grouping, I am using k-means clustering. One of my variables is a metric called CR (conversion rate) which takes values ...
gülsemin's user avatar
1 vote
1 answer
617 views

Clustering data points with multiple rows

I have 100 people with their mobile browsing records, where each record tracks the person's browsing url and duration etc., and thus each person will have multiple rows of records. Now I want to ...
Yneedtobeserious's user avatar
0 votes
0 answers
64 views

How to interpret result of kMeans scores if I have encoded the data with OneHotEncoder?

I am working on the AdventureWorks database and I have extracted some demographic data from the person scheme as follow. My aim ...
Nikolaev's user avatar
1 vote
0 answers
579 views

Difference between Hamming Loss, Hamming Score, and Hamming Distance in multiclass multilabel classification

I am trying to understand the mathematical difference between, Hamming distance, Hamming Loss and Hamming score. I am trying to perform two actions Multiclass multi label classification using SVM K ...
Srinag Vinil Tummala's user avatar
1 vote
0 answers
134 views

K-Means clustering technique for monthly data

I have an Unsupervised problem where user's Credit Card payment data is given for each month for various users for one year. One of the feature in the data having "User Id". For most of the ...
Archaeolexicologist's user avatar
2 votes
0 answers
290 views

Update centroids in minibatch K-Means

I wish to know about the operation of minibatch KMeans through a very simple algorithm. The aim of this post is to know how should one update centers in minibatch KMeans. I intend to integrate ...
Ling Guo's user avatar
  • 121
2 votes
2 answers
72 views

How to make clusters (consisting of demands) equal to the load of a truck?

I am working on a routing problem where I have thousands of points (places) with individual demands (in Weight and Volume). So far I have created 5 clusters based on their location. Now I need to ...
Shibaprasad's user avatar
0 votes
0 answers
78 views

The total within sum of squares gradually decreases in K-means algorithm

Show that for K-means algorithm, $ \sum_{k=1}^K \sum_{i \in C_k} d(X_i,\bar{X_k}) \ge \sum_{j=1}^K \sum_{i \in C_j^\prime} d(X_i,\bar{X_j^\prime})$, where d is the squared Euclidean distance,$\bar{X_k}...
Quantam's user avatar
  • 23
0 votes
0 answers
31 views

What the difference between clustering methods?

I am focusing on a thesis for introducing clustering methods. Chapter 3 includes hierarchical clustering, partitional clustering and density-based clustering. Meanwhile, chapter 4 is mainly on Self-...
4daJKong's user avatar
  • 111
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
0 votes
1 answer
93 views

Can K-means be used to group data in win/lose categorical values for prediction purposes?

Currently I have a dataset with matches played by a team against other teams. Some of the variables are: kills, deads, assists, amountgold, amountdamagedone, result(win/lose). What I want to do is ...
M Yil's user avatar
  • 101
2 votes
1 answer
504 views

Can the k-nearest neighbor algorithm tell you how many clusters there are among predictors?

I recently did a short course on machine learning in R and found the k-means and k-nearest neighbor techniques extremely interesting. Forgive my naivete if this is all wrong, but it seems like the ...
llewmills's user avatar
  • 2,187
1 vote
0 answers
50 views

Precise definition of K-means

I am reading about K-means algorithm, and trying to explain it to myself in one sentence. However, I am a bit confused. I have came up with following definitions and I am not sure whether which one is ...
dsapprentice's user avatar
1 vote
1 answer
2k views

Confusion matrix for k-means algorithm

Using R, I ran the K-means algorithm on a dataset with 1m+ rows. Using elbow plot, the optimum no. of clusters was found to be 3. Now each data point is assigned a cluster from the set {1,2,3}. But I'...
Aabhas Vij's user avatar
2 votes
1 answer
926 views

Interpretation of Cluster Distortion on Normalized data

I have a clustering problem which I solved using KMeans clustering. I also know that the Elbow Method for cluster evaluation can be used to approximate a feasible pick for the number of clusters. I ...
Bjarke Kingo's user avatar
4 votes
0 answers
704 views

Clustering text embeddings: TF-IDF + BERT Sentence Embeddings

I am trying to cluster a few thousand forum posts that are similar in content to Stackoverfow. So far, I have tried two main approaches to represent the posts: TF-IDF Sentence embedding based on BERT....
msamogh's user avatar
  • 61
0 votes
0 answers
254 views

Classification on aggregate data

I've been tasked with creating a model that can classify individual cases as either something to be flagged or not. However, the training data I have access to is only aggregate data, where each row ...
proofs_challenged's user avatar
0 votes
1 answer
125 views

KNN and K-means, very different but possible equivalency?

Why does the k-nearest neighbor algorithm and k-means clustering algorithm with $k=1$ act the same?
Mio Unio's user avatar
0 votes
0 answers
36 views

Is variable contribution to the top principal components a valid method to asses variable importance in a k-means clustering? [duplicate]

If the answer is no, could someone give a simple counterexample? Thank you!
RR_28023's user avatar
3 votes
1 answer
4k views

KMeans clustering - can inertia increase with number of clusters

I am doing kmeans clusters on sales data and i see that inertia increases for the initial increase in the number of clusters. Can you please explain why that happens? I am doing Batched Kmeans for the ...
maamli's user avatar
  • 85
1 vote
1 answer
63 views

K-Means Clustering for telecom customers behavioral usage

I am trying to run K-means clustering on a dataset of 100k records and 26 columns. My problem is in the visualization or plotting clusters part. Since I have several features, I couldn't specify the x ...
Eman Hussein Sharaf Addin's user avatar
1 vote
1 answer
101 views

How to identify distinct classes for classification problems?

I'm working with a dataset in which we've taken audio recordings of coral reef habitat from 3 different types: healthy, degraded and restored. From each recordings I have 13 different continous ...
Ben Coral's user avatar
1 vote
2 answers
196 views

Is it possible to have same result for knn classifier and kmeans?

Could we achieve similar grouping or results for a set of data, if applied with either Knn and k-means
blackmamba591's user avatar