[scikit-learn] Finding a single cluster in 1d data

2018-04-12 Thread Raphael C
I have a set of points in 1d represented by a list X of floating point numbers. The list has one dense section and the rest is sparse and I want to find the dense part. I can't release the actual data but here is a simulation: N = 100 start = 0 points = [] rate = 0.1 for i in range(N): point

Re: [scikit-learn] Finding a single cluster in 1d data

2018-04-12 Thread Pedro Pazzini
Hi Raphael. An option to highlight a dense region in your vector is to use a density estimator (http://scikit-learn.org/stable/modules/density.html). But I think that the python module jenkspy ( https://pypi.python.org/pypi/jenkspy and https://github.com/mthh/jenkspy) can help you also. The metho