I want to investigate the role of each attribute in segmentation. How can I calculate the weights of different attributes in a cluster? like k-means in python
After a K-mean clustering, for instance, to investigate children's food options selections patterns, I am checking if the cluster membership is associated with individual characteristics (e.g., group of age, economic statuses such as universal free school meal and free school meal means-tested entitlement) using chi-squared tests. K-means clustering is used to do a data exploration analysis. If you need to have variable importance, you have to use supervised machine learning of regression or classification dependent on your research question.