[scikit-learn] Get parameters of classes in a Pipeline within cross_validate

Andreas Mueller t3kcit at gmail.com
Fri Apr 6 16:16:17 EDT 2018


This is implemented in the current development version:
https://github.com/scikit-learn/scikit-learn/pull/9686

On 03/29/2018 05:16 AM, Roberto Guidotti wrote:
> Hi scikit-learners,
>
> I have a simple Pipeline with Feature Selection and SVC classifier and 
> I use it in a cross validation schema with cross_validate / 
> cross_validation_score functions.
> I need to extract the selected features for each fold of the CV and in 
> general get information about the fitted elements of the pipeline in 
> each of the CV fold.
>
> Is there a way to get these information (e.g. fs.get_support() or 
> fs.scores_) or I need to build my own cross_validate function?
>
> Thank you,
> Roberto
>
> -- 
> Ing. Roberto Guidotti, PhD.
> PostDoc Fellow
> Institute for Advanced Biomedical Technologies - ITAB
> Department of Neuroscience and Imaging
> University of Chieti "G. D'Annunzio"
> Via dei Vestini, 33
> 66013 Chieti, Italy
> tel: +39 0871 3556919
> e-mail: r.guidotti at unich.it <mailto:r.guidotti at unich.it>; 
> rguidotti at acm.org <mailto:rguidotti at acm.org>
> linkedin: http://it.linkedin.com/in/robertogui/
> twitter: @robbisg
> github: https://github.com/robbisg
>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180406/68aaf8b2/attachment.html>


More information about the scikit-learn mailing list