[scikit-learn] Terminating a Pipeline with a NearestNeighbors search

Joel Nothman joel.nothman at gmail.com
Wed Sep 13 17:14:49 EDT 2017


it's pretty easy to implement this by creating your own Pipeline subclass,
isn't it?

On 14 Sep 2017 4:55 am, "Gael Varoquaux" <gael.varoquaux at normalesup.org>
wrote:

> On Wed, Sep 13, 2017 at 02:45:41PM -0400, Andreas Mueller wrote:
> > We could add a way to call non-standard methods, but I'm not sure that
> is the
> > right way to go.
> > (like pipeline.custom_method(X, method="kneighbors")). But that assumes
> that
> > the method signature is X or (X, y).
> > So I'm not sure if this is generally useful.
>
> I don't see either why it's useful. We shouldn't add a method for
> everything that can be easily coded with a few lines of Python. The nice
> thing of Python is that it is such an expressive language.
>
> Gaël
> _______________________________________________
> 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/20170914/b36a97d8/attachment.html>


More information about the scikit-learn mailing list