Olivier,
I know what you're referring to, but that uses the feature selector, not
the model (with the model being a classifier like a Decision Tree or
Gaussian Bayes). These models were saved quite a while ago, so I don't have
access to whatever feature selector object they used. That was why I
specifically asked if there was anything like this in the *model*.
On Mon, Jul 29, 2013 at 9:54 AM, <
[email protected]> wrote:
> Send Scikit-learn-general mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Scikit-learn-general digest..."
>
>
> Today's Topics:
>
> 1. Re: Feature freeze (Andreas Mueller)
> 2. Re: Feature freeze (Olivier Grisel)
> 3. Re: (no subject) (Alexandre ABRAHAM)
> 4. Re: (no subject) (Gael Varoquaux)
> 5. Re: Feature freeze (Gael Varoquaux)
> 6. Re: Gracefully modeling missing values (nan's) in CART
> (classification or regression trees). (Olivier Grisel)
> 7. Finding the Features a Model Used? (Wifi Gi)
> 8. Re: Finding the Features a Model Used? (Olivier Grisel)
>
> Message: 7
> Date: Mon, 29 Jul 2013 09:47:21 -0600
> From: Wifi Gi <[email protected]>
> Subject: [Scikit-learn-general] Finding the Features a Model Used?
> To: [email protected]
> Message-ID:
> <
> caccjtvk8zjaxzbwwauresx1ce76prqm_hgu1-7gucjodw1w...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I've saved a number of models by pickling them to disk, so that I can use
> them multiple times on different data. Many of these models were built
> using feature selection, so they don't use all the features of the data set
> (ie. 19 rather than 22 for example). Are the selected features/features
> used stored anywhere in the model?
>
> I can't use the models on the data as I would like because the data has
> more features, and the number of feature in the input must match the number
> of features in the model. If I can just find the features the model is
> using, it's trivial to strip them out of the input data, but so far I
> haven't found anything that gives me this information.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 8
> Date: Mon, 29 Jul 2013 17:54:02 +0200
> From: Olivier Grisel <[email protected]>
> Subject: Re: [Scikit-learn-general] Finding the Features a Model Used?
> To: scikit-learn-general <[email protected]>
> Message-ID:
> <CAFvE7K5ViQ4gyYF=uae5qNYvv9a3q7ASdR3d0LzW357p5nY=
> [email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> There is a `get_support` method on the feature selector. It returns a
> boolean mask on the feature space unless you pass `indices=True` to
> get a fancy indexing mask instead.
>
> See
> http://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectFpr.html#sklearn.feature_selection.SelectFpr.get_support
> for instance.
>
>
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
> ------------------------------
>
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
> End of Scikit-learn-general Digest, Vol 42, Issue 99
> ****************************************************
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general