<div dir="ltr">Pipelines are useful for creating composite estimators that can be plugged in elsewhere. At the moment we have nowhere you can plug in a neighborhood calculator, although we would like to (see <a href="https://github.com/scikit-learn/scikit-learn/pull/8999">https://github.com/scikit-learn/scikit-learn/pull/8999</a> for the latest attempt). If there are then compelling use-cases for allowing that pluggable neighbors estimator to be a pipeline, we might follow that path. But as you implied, we don't want to confuse users if such use-cases are far fetched.<div><br></div><div>What do you intend to use it for?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 September 2017 at 02:47, Ryan Conway <span dir="ltr"><<a href="mailto:ryanmackenzieconway@gmail.com" target="_blank">ryanmackenzieconway@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you, Andreas. Indeed this becomes cumbersome when we don't know the prototype of the terminating function.</div><span class=""><div dir="auto"><br></div><div dir="auto">> <span style="font-family:sans-serif">it's pretty easy to implement this by creating your own Pipeline subclass, isn't it?</span></div><div dir="auto"><font face="sans-serif"><br></font></div></span><div><font face="sans-serif">Good idea, that's probably the route I will take. </font><font face="sans-serif">That said, </font><span style="font-family:sans-serif">as a newcomer to sklearn, a benefit of utility classes such as Pipeline is that their interface helps me understand the library developers' intent and how its components should fit together. Prior to this conversation I lacked confidence that Pipeline was suitable for my use case.</span></div><span class="HOEnZb"><font color="#888888"><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Ryan</font></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 13, 2017 at 2:14 PM, Joel Nothman <span dir="ltr"><<a href="mailto:joel.nothman@gmail.com" target="_blank">joel.nothman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">it's pretty easy to implement this by creating your own Pipeline subclass, isn't it?</div><div class="m_-6149808480096633967HOEnZb"><div class="m_-6149808480096633967h5"><div class="gmail_extra"><br><div class="gmail_quote">On 14 Sep 2017 4:55 am, "Gael Varoquaux" <<a href="mailto:gael.varoquaux@normalesup.org" target="_blank">gael.varoquaux@normalesup.org</a><wbr>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 13, 2017 at 02:45:41PM -0400, Andreas Mueller wrote:<br>
> We could add a way to call non-standard methods, but I'm not sure that is the<br>
> right way to go.<br>
> (like pipeline.custom_method(X, method="kneighbors")). But that assumes that<br>
> the method signature is X or (X, y).<br>
> So I'm not sure if this is generally useful.<br>
<br>
I don't see either why it's useful. We shouldn't add a method for<br>
everything that can be easily coded with a few lines of Python. The nice<br>
thing of Python is that it is such an expressive language.<br>
<br>
Gaël<br>
______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a><br>
</blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div>