Re: [Scikit-learn-general] dbscan: labels as numpy array

2012-05-08 Thread Andreas Mueller
On 05/08/2012 10:41 AM, Gael Varoquaux wrote: > On Mon, May 07, 2012 at 03:50:00PM -0400, Félix-Antoine Fortin wrote: >> I presumed there are valid reasons for using a numpy array, and represent >> error points as -1. > Reasons for using a numpy array are that it is faster and more memory > effici

Re: [Scikit-learn-general] dbscan: labels as numpy array

2012-05-08 Thread Gael Varoquaux
On Mon, May 07, 2012 at 03:50:00PM -0400, Félix-Antoine Fortin wrote: > I presumed there are valid reasons for using a numpy array, and represent > error points as -1. Reasons for using a numpy array are that it is faster and more memory efficient than a list. Gael -

[Scikit-learn-general] dbscan: labels as numpy array

2012-05-08 Thread Félix-Antoine Fortin
Hi, I have recently used the DBSCAN implementation of scikit-learn, and I have a "quick" question. Currently, noise points are labelled as -1 in a numpy array. >From my point of view, clustering labels can be used for example as index of a >sequence. However, in Python -1 is still a valid ind