Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Gael Varoquaux
On Tue, Jul 17, 2012 at 09:55:28AM -0700, Jake Vanderplas wrote: > I did a bit more experimentation, and it looks like memoryviews with > boundscheck and wraparound turned off are largely comparable to pointers > for *pure indexing*. Slicing is what kills things. Ha, that's useful information.

Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Jake Vanderplas
On 07/17/2012 09:20 AM, Gael Varoquaux wrote: > On Tue, Jul 17, 2012 at 09:01:28AM -0700, Jake Vanderplas wrote: >> I put this together really quickly this morning - let me know if you see >> anything I missed that makes the comparisons unfair. > You're at scipy, aren't you? Maybe it would be usefu

Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Gael Varoquaux
On Tue, Jul 17, 2012 at 09:01:28AM -0700, Jake Vanderplas wrote: > I put this together really quickly this morning - let me know if you see > anything I missed that makes the comparisons unfair. You're at scipy, aren't you? Maybe it would be useful to grab some of the cython folks to have their i

Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Olivier Grisel
2012/7/17 Jake Vanderplas : > On 07/16/2012 11:56 PM, Andreas Mueller wrote: >> On 07/17/2012 07:40 AM, Olivier Grisel wrote: >>> 2012/7/16 Andreas Mueller : On 07/16/2012 09:55 PM, Gael Varoquaux wrote: > On Mon, Jul 16, 2012 at 01:13:55PM -0700, Jake Vanderplas wrote: >> How do folks

Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Peter Prettenhofer
seems like the pointer kung-fu pays off Thanks Jake! 2012/7/17 Jake Vanderplas : > On 07/16/2012 11:56 PM, Andreas Mueller wrote: >> On 07/17/2012 07:40 AM, Olivier Grisel wrote: >>> 2012/7/16 Andreas Mueller : On 07/16/2012 09:55 PM, Gael Varoquaux wrote: > On Mon, Jul 16, 2012 at 01:13

Re: [Scikit-learn-general] silhouette score returning NaN

2012-07-17 Thread Olivier Grisel
2012/7/17 Rafael Almeida : > Hello, > > I'm experimenting with k-means clustering. When using certain values for k, > silhouette score returns NaN. Is that a bug or is that how it's supposed to > work? What does it mean? If it is not a bug, I think the function should > return something more meanin

Re: [Scikit-learn-general] BallTree and memoryviews

2012-07-17 Thread Jake Vanderplas
On 07/16/2012 11:56 PM, Andreas Mueller wrote: > On 07/17/2012 07:40 AM, Olivier Grisel wrote: >> 2012/7/16 Andreas Mueller : >>> On 07/16/2012 09:55 PM, Gael Varoquaux wrote: On Mon, Jul 16, 2012 at 01:13:55PM -0700, Jake Vanderplas wrote: > How do folks feel about using this sort of blee

[Scikit-learn-general] silhouette score returning NaN

2012-07-17 Thread Rafael Almeida
Hello, I'm experimenting with k-means clustering. When using certain values for k, silhouette score returns NaN. Is that a bug or is that how it's supposed to work? What does it mean? If it is not a bug, I think the function should return something more meaningful when it fails. PS: I have sen

Re: [Scikit-learn-general] IntervalScaler?

2012-07-17 Thread denis
Florian Hönig writes: > Dear list, > > analogously to sklearn.preprocessing.scale and sklearn.preprocessing.Scaler, > I would like to add something for scaling the individual features to > the interval [0;1]. > > I have encountered a number of datasets where mean/variance scaling didn't > help