On Fri, Nov 11, 2011 at 2:34 PM, Lars Buitinck <[email protected]> wrote:
>> I see two ways to deal with that: a) cast X to either float32 or
>> float64 or b) compute X = X - mean. I prefer b).
>
> Both of these copy X, right?

You could also get the old (possibly broken?) behaviour back by doing

X -= int(mean)

I think NumPy does the right thing by raising an error here.

Stéfan

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to