Re: [Scikit-learn-general] linear_model.base.center_data always returns C_CONTIGUOUS array

2012-08-16 Thread iBayer
Hi Vlad, which `__init__.py` do you mean? I was looking in utils/__init__.py but couldn't find it. However I like 'git grep' better anyway, thanks for the tip. Immanuel 2012/8/16 Vlad Niculae > > On Aug 16, 2012, at 18:57 , iBayer wrote: > > > Hi, > > > > I know it sounds stupid but where is

Re: [Scikit-learn-general] RFE with sparse features?

2012-08-16 Thread Andreas Müller
Hi Nick. Should work in master now. Cheers, Andy - Ursprüngliche Mail - Von: "Nicholas Pilkington" An: [email protected] Gesendet: Montag, 13. August 2012 21:57:53 Betreff: Re: [Scikit-learn-general] RFE with sparse features? Cool thanks, hope it's not too much

Re: [Scikit-learn-general] linear_model.base.center_data always returns C_CONTIGUOUS array

2012-08-16 Thread Vlad Niculae
On Aug 16, 2012, at 18:57 , iBayer wrote: > Hi, > > I know it sounds stupid but where is the code for ``as_float_array``? > because of: It's in `validation.py`, you can find this out either by looking where it's imported from in the `__init__.py` or by using the priceless `git grep`.

Re: [Scikit-learn-general] linear_model.base.center_data always returns C_CONTIGUOUS array

2012-08-16 Thread iBayer
Hi, I know it sounds stupid but where is the code for ``as_float_array``? because of: from ..utils import array2d, as_float_array, safe_asarray I was looking in the utils folder, but I can't find it? Best, Immanuel 2012/8/16 Alexandre Gramfort > hi Immanuel, > > yes centering the data can take

Re: [Scikit-learn-general] Newbie and GaussianProcess classification

2012-08-16 Thread Andreas Müller
Hi Jose. I think the Gaussian Process in sklearn is only meant for regression at the moment. It can be used for classification but making it work with the multi-class module is non-trivial I think (someone correct me if I'm wrong). The Gaussian Process module is still pretty much in it's infancy

[Scikit-learn-general] Newbie and GaussianProcess classification

2012-08-16 Thread Jose Gomez-Dans
Hi, (Newbie alert, first of all!) I was wondering whether I could use scikit-learn for GaussianProcess multiple class classification. I guess that this has to go through a one vs rest algorithm (example here: ) but this fails with the following error: ValueErro

Re: [Scikit-learn-general] linear_model.base.center_data always returns C_CONTIGUOUS array

2012-08-16 Thread Alexandre Gramfort
hi Immanuel, yes centering the data can take some time and as_float_array returns a C-contiguous array with copy=True What I would do is to add support for order in as_float_array so we avoid an unnecessary copy. nice catch ! Alex On Thu, Aug 16, 2012 at 12:06 PM, iBayer wrote: > Hello, > > I

[Scikit-learn-general] linear_model.base.center_data always returns C_CONTIGUOUS array

2012-08-16 Thread iBayer
Hello, I just got the impression that linear_model.base.center_data always returns a C_CONTIGUOUS array even if it has been made f-continous before X = np.asfortranarray(X) (see ipython session below). It looks to me that this causes some expensive memory operation when fitting some models (see li