in Education by
I am performing clustering on some data points which are in various degrees, like low, medium, and high. Is it advisable to convert them into numbers like low-1, med-2, hig-3, and apply k means directly, or should I use any other method? I performed like this, but it is not always always giving good results. Sometimes it gives very good results but sometimes it does not. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
K-means does not make much sense on such data. It's designed for continuous variables. Where the name-giving mean makes sense and minimizes the least squared error. For categoricial data, use k-medoids or k-modes instead! Furthermore, you need to carefully consider variable importance. Note that on categoricial / discrete data it very frequently seems to be a problem that the optimization algorithms get stuck in local optima: because there is no "continuous" path to improve the results. Because of that, the results sometimes are good, and sometimes are bad. You can then increase the number of restarts, but with increasing complexity your chance of lucky guessing decreases...

Related questions

0 votes
    I am performing clustering on some data points which are in various degrees, like low, medium, and high. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am performing clustering on some data points which are in various degrees, like low, medium, and high. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    Can someone explain the basic difference between classification and clustering? Provide some examples. Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Can I specify my own distance function using scikit-learn K-Means Clustering? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is required by K-means clustering? (a) defined distance metric (b) number of ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    Which of the following function is used for k-means clustering? (a) k-means (b) k-mean (c) ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    Today I'm trying to learn something about K-means. I Have understood the algorithm and I know how it works. Now I ... a lot of time? Select the correct answer from above options...
asked Jan 29, 2022 in Education by JackTerrance
0 votes
    There is only one question related to this and it is more about which one is better. I just don't ... exactly lies the difference? Select the correct answer from above options...
asked Jan 27, 2022 in Education by JackTerrance
0 votes
    How can you select k for k-means?...
asked Apr 27, 2021 in Technology by JackTerrance
0 votes
    How is KNN different from k-means?...
asked Mar 3, 2021 in Technology by JackTerrance
0 votes
    The ________ stores the nominal values as a vector of integers in the range of 1 to unique values in the ... Out of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    In a _______ clustering index, the index record contains the search-key value and a pointer to the first ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    What conditions are must for competitive network to perform pattern clustering? (a) non linear output layers (b) ... fulfils the whole criteria Please answer the above question....
asked Aug 27, 2022 in Education by JackTerrance
0 votes
    What kind of learning is involved in pattern clustering task? (a) supervised (b) unsupervised (c) learning with critic (d) none of the mentioned Please answer the above question....
asked Aug 27, 2022 in Education by JackTerrance
...