Re: [Scikit-learn-general] Pipeline - Convert to dense

2014-08-22 Thread Sebastian Okser
com<mailto:se.rasc...@gmail.com>] Sent: Thursday, August 21, 2014 10:41 PM To: scikit-learn-general@lists.sourceforge.net<mailto:scikit-learn-general@lists.sourceforge.net> Subject: Re: [Scikit-learn-general] Pipeline - Convert to dense Hi, Zoraida, thanks for the follow up! I went

Re: [Scikit-learn-general] Pipeline - Convert to dense

2014-08-21 Thread Anders Aagaard
gt; Sebastian > ________ > From: Sebastian Raschka [se.rasc...@gmail.com] > Sent: Thursday, August 21, 2014 10:41 PM > To: scikit-learn-general@lists.sourceforge.net > Subject: Re: [Scikit-learn-general] Pipeline - Convert to dense > > H

Re: [Scikit-learn-general] Pipeline - Convert to dense

2014-08-21 Thread Sebastian Okser
can I account for the gridsearch's cv when doing the hstack in this situation? Thanks. Sebastian From: Sebastian Raschka [se.rasc...@gmail.com] Sent: Thursday, August 21, 2014 10:41 PM To: scikit-learn-general@lists.sourceforge.net Subject: Re: [Scikit-learn-

Re: [Scikit-learn-general] Pipeline - Convert to dense

2014-08-21 Thread Sebastian Raschka
Hi, Zoraida, thanks for the follow up! I went with a short, custom ColumnSelector class, but the itemgetter is even nicer. Best, Sebastian On Aug 21, 2014, at 2:57 PM, ZORAIDA HIDALGO SANCHEZ wrote: > Sebastian, > > a few days ago, I asked a very similar question and I got this link as a >

Re: [Scikit-learn-general] Pipeline - Convert to dense

2014-08-21 Thread ZORAIDA HIDALGO SANCHEZ
Sebastian, a few days ago, I asked a very similar question and I got this link as a response: https://github.com/scikit-learn/scikit-learn/issues/2034 I think that you could try something similar. Best, Zoraida.- El 21/08/14 18:48, "Sebastian Okser" escribió: >I am trying to use the pipe

[Scikit-learn-general] Pipeline - Convert to dense

2014-08-21 Thread Sebastian Okser
I am trying to use the pipeline combined with a countvectorizer, tfidftransformer and randomforest. However the output of the second step is a sparse array and randomforest requires a dense one. How can I add a step to allow for a conversion of the matrix from sparse to dense, using something a