What clustering algorithm can be used for 1 data?

I have a list of numbers in an array. The index of each element is X, and the value is Y. How do I go about splitting / clustering this data? If I had an array, I just want a set of values ​​that mark the end of each section. Since I'm working on Python, please indicate if there are libraries to do the same.

Thanks.

+1
python cluster-analysis
source share
1 answer

K-Means is a very simple clustering algorithm, I would say that you first need to test before moving on to more complex things. K-Means Algorithm http://en.wikipedia.org/wiki/K-means_clustering

Proper initialization of K-Me is highly recommended http://en.wikipedia.org/wiki/K-means%2B%2B , as it is.

If you are unhappy with K-Means, you use the EM algorithm with a Gaussian mix ( http://en.wikipedia.org/wiki/Mixture_model ), it is not too difficult to encode, and you can use K-Means to initialize it!

Those that have been implemented 100 times in Python check out any machine learning toolbar.

+5
source share

All Articles