help 2015-06-26 14:00 UTC+02:00, scikit-learn-general-requ...@lists.sourceforge.net <scikit-learn-general-requ...@lists.sourceforge.net>: > Send Scikit-learn-general mailing list submissions to > scikit-learn-general@lists.sourceforge.net > > 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 > scikit-learn-general-requ...@lists.sourceforge.net > > You can reach the person managing the list at > scikit-learn-general-ow...@lists.sourceforge.net > > 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: Passing kwargs to pipeline predict (Michael Kneier) > 2. Re: Passing kwargs to pipeline predict (Joel Nothman) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 25 Jun 2015 10:35:37 -0700 > From: Michael Kneier <michael.kne...@gmail.com> > Subject: Re: [Scikit-learn-general] Passing kwargs to pipeline predict > To: "scikit-learn-general@lists.sourceforge.net" > <scikit-learn-general@lists.sourceforge.net> > Message-ID: > <cackgebesbwogpdwpn02nsefnnyom22pasbcbzjcnmogycf8...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > As far as I know, there aren't any estimators with predict kwargs. This > doesn't mean that engineers aren't writing their own estimators, which may > need kwargs. To me, one of sklearns great strengths is its pipeline, and > extending its functionality to allow for more flexible estimator methods > seems like a good thing. Perusing the sklearn github, it seems that there > are is demand for extending the parameters pipeline accepts. > > If the yourself and the community prefer not to, that's fine. I think it is > worth discussion though. > > > On Wed, Jun 24, 2015 at 2:47 PM, Joel Nothman <joel.noth...@gmail.com> > wrote: > >> What estimators have predict with multiple args? Without support for same >> in cross validation routines and scorers, isn't t easier to write this >> functionality in custom code as you need it, leaving the predictor off >> the >> Pipeline? >> >> On 25 June 2015 at 06:06, Michael Kneier <michael.kne...@gmail.com> >> wrote: >> >>> Hi all, >>> >>> It doesn't look like pipelines currently support passing kwargs to their >>> estimators' predict method. I think it would be great to add this >>> functionality, but I want to get your thoughts before I open a PR. >>> >>> Thanks, >>> Mike >>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor 25 network devices or servers for free with OpManager! >>> OpManager is web-based network management software that monitors >>> network devices and physical & virtual servers, alerts via email & sms >>> for fault. Monitor 25 devices for free with no restriction. Download now >>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>> _______________________________________________ >>> Scikit-learn-general mailing list >>> Scikit-learn-general@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Monitor 25 network devices or servers for free with OpManager! >> OpManager is web-based network management software that monitors >> network devices and physical & virtual servers, alerts via email & sms >> for fault. Monitor 25 devices for free with no restriction. Download now >> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >> _______________________________________________ >> Scikit-learn-general mailing list >> Scikit-learn-general@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Fri, 26 Jun 2015 04:14:44 +1000 > From: Joel Nothman <joel.noth...@gmail.com> > Subject: Re: [Scikit-learn-general] Passing kwargs to pipeline predict > To: scikit-learn-general <scikit-learn-general@lists.sourceforge.net> > Message-ID: > <caakaflvbknqjx1ja8_cesaeso+ohdseakj5whgs4xyog7ff...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > As much as possible, parameters to a model should be specified to the class > constructor, not methods, even if application is there. This has been the > scikit-learn design for a while in order to enable things like grid search > and a bare-bones pipeline implementation. So external projects adding > additional args to predict may not have been correctly designed (and it's > easy enough for you to inherit from their model to fix the problem by > moving that param to the constructor). It may be valid to add a param to > predict when: (a) it is data-dependent, e.g. a parallel array to the > feature array; or (b) it modifies the output format of predict, e.g. to > return error as in GaussianProcess. Any uses of this are fundamentally > custom approaches for which Pipeline already has reduced utility, but I can > see how forwarding kwargs may give a minor convenience. > > On 26 June 2015 at 03:35, Michael Kneier <michael.kne...@gmail.com> wrote: > >> As far as I know, there aren't any estimators with predict kwargs. This >> doesn't mean that engineers aren't writing their own estimators, which >> may >> need kwargs. To me, one of sklearns great strengths is its pipeline, and >> extending its functionality to allow for more flexible estimator methods >> seems like a good thing. Perusing the sklearn github, it seems that there >> are is demand for extending the parameters pipeline accepts. >> >> If the yourself and the community prefer not to, that's fine. I think it >> is worth discussion though. >> >> >> >> On Wed, Jun 24, 2015 at 2:47 PM, Joel Nothman <joel.noth...@gmail.com> >> wrote: >> >>> What estimators have predict with multiple args? Without support for >>> same >>> in cross validation routines and scorers, isn't t easier to write this >>> functionality in custom code as you need it, leaving the predictor off >>> the >>> Pipeline? >>> >>> On 25 June 2015 at 06:06, Michael Kneier <michael.kne...@gmail.com> >>> wrote: >>> >>>> Hi all, >>>> >>>> It doesn't look like pipelines currently support passing kwargs to >>>> their >>>> estimators' predict method. I think it would be great to add this >>>> functionality, but I want to get your thoughts before I open a PR. >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Monitor 25 network devices or servers for free with OpManager! >>>> OpManager is web-based network management software that monitors >>>> network devices and physical & virtual servers, alerts via email & sms >>>> for fault. Monitor 25 devices for free with no restriction. Download >>>> now >>>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>>> _______________________________________________ >>>> Scikit-learn-general mailing list >>>> Scikit-learn-general@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor 25 network devices or servers for free with OpManager! >>> OpManager is web-based network management software that monitors >>> network devices and physical & virtual servers, alerts via email & sms >>> for fault. Monitor 25 devices for free with no restriction. Download now >>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>> _______________________________________________ >>> Scikit-learn-general mailing list >>> Scikit-learn-general@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Monitor 25 network devices or servers for free with OpManager! >> OpManager is web-based network management software that monitors >> network devices and physical & virtual servers, alerts via email & sms >> for fault. Monitor 25 devices for free with no restriction. Download now >> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >> _______________________________________________ >> Scikit-learn-general mailing list >> Scikit-learn-general@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > > ------------------------------ > > _______________________________________________ > Scikit-learn-general mailing list > Scikit-learn-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > > > End of Scikit-learn-general Digest, Vol 65, Issue 44 > **************************************************** >
------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general