[scikit-learn] how to preprocess in the cross_validate

charujing123 charujing123 at 163.com
Mon Jul 8 20:48:04 EDT 2019


Hi Oliver,
Thanks for your kind reply. I read the manual, however, i did not find any options in the function of cross_validate to control the fit transformation. The fit_transform could be used to preprocessing in the pipeline, however, how to integrate this into the function of sklearn.model_selection.cross_validate?
Thanks.
Rujing

2019-07-09 

charujing123 



发件人:Oliver Rausch <oliverrausch99 at gmail.com>
发送时间:2019-07-07 16:03
主题:Re: [scikit-learn] how to preprocess in the cross_validate
收件人:"Scikit-learn mailing list"<scikit-learn at python.org>
抄送:

Hi Rujing,
The Pipeline [0] from sklearn may be of interest to you.


Best regards,
Oliver 
—
[0] https://scikit-learn.org/stable/modules/compose.html


On Sun, Jul 7, 2019 at 08:50 charujing123 <charujing123 at 163.com> wrote:

Hi
It's easy to preprocess when i used part of data to train and test. However, how to preprocess within the function of sklearn.model_selection.cross_validate?
Thanks.
Rujing

2019-07-07



charujing123 
_______________________________________________
scikit-learn mailing list
scikit-learn at python.org
https://mail.python.org/mailman/listinfo/scikit-learn

-- 

Best Regards,
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20190709/67a78d6d/attachment.html>


More information about the scikit-learn mailing list