2012/5/26 Ariel Rokem <[email protected]>: > Hi Alex, > > Thanks for responding. > > On Sat, May 26, 2012 at 5:09 AM, Alexandre Gramfort > <[email protected]> wrote: >> hi ariel, >> >> have you standardized your data? >> > > No, not yet. I'll try doing that. I understand that it's not a bad > idea to do that, but should it be necessary?
Yes, have a look at the Scaler transformer: http://scikit-learn.org/dev/modules/preprocessing.html#standardization-or-mean-removal-and-variance-scaling http://scikit-learn.org/dev/modules/generated/sklearn.preprocessing.Scaler.html In particular, for sparse data you will need to set with_mean=False to avoid the scaler try to center the data that would break the sparsity. -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel ------------------------------------------------------------------------------ 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
