On 05/06/2012 10:38 PM, Gael Varoquaux wrote: > On Sun, May 06, 2012 at 10:36:04PM +0200, Andreas Mueller wrote: >> Maybe we can include it with other checks, > Sounds good. > >> and maybe with a call to "unique" for the labels. > I'd rather use 'ptp': peak to peak: > > In [5]: a = np.random.randint(0, 20, 20000) > > In [6]: a.ptp() > Out[6]: 19 > > In [7]: %timeit a.ptp() > 10000 loops, best of 3: 44.7 us per loop > > In [8]: %timeit np.unique(a) > 1000 loops, best of 3: 538 us per loop > How would you do the inverse transform then?
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
