[scikit-learn] Vote on SLEP009: keyword only arguments

Albert Thomas albertthomas88 at gmail.com
Mon Sep 16 16:22:48 EDT 2019


Hi all,

Just a few comments about this SLEP from a contributor and user of the
library :).

I think it is important for users to be able to quickly and easily
know/learn which arguments should be keyword arguments when they use
scikit-learn. As a user, I do not want to have to double check each time I
use a function the arguments that should be keyword arguments. Hence the
following sentence of the SLEP "the decision for these methods should be
the same throughout the library in order to keep a consistent interface to
the user"  is very important to me. Also how  is this going to be rendered
by sphinx in the doc? (before numpydoc supports section for parameters)

Thanks,
Albert


On Mon, Sep 16, 2019 at 9:33 PM Gael Varoquaux <
gael.varoquaux at normalesup.org> wrote:

> On Mon, Sep 16, 2019 at 11:28:57PM +1000, Joel Nothman wrote:
> > That is, we could consider this resolved after 14 votes in favour.
>
> > So far, if I've interpreted correctly:
>
> > +1 (adrin, nicolas, hanmin, joel, guillaume, jeremie, thomas, vlad,
> roman) = 9.
>
> > I've not understood a clear position from Alex. I'm assuming Andreas is
> in
> > favour given his comments elsewhere, but we've not seen comment here.
>
> I was planning to vote -0 mostly to avoid the vote to seem like bandwagon
> (and because I am not fully sold on the idea), but I actually want this
> to move forward, and it seems that my vote is needed.
>
> Hence, I vote +1.
>
> Hopefully Andreas and Alex make their position clear and we can adopt the
> SLEP.
>
> Thank you to you all.
>
> Gaël
>
> > On Mon, 16 Sep 2019 at 20:06, Roman Yurchak <rth.yurchak at gmail.com>
> wrote:
>
> >     +1 assuming we are careful about continuing to allow some frequently
> >     used positional arguments, even in __init__.
>
> >     For instance,
>
> >     n_components = 10
> >     pca = PCA(n_components)
>
> >     is still more readable, I think, than,
>
> >     pca = PCA(n_components=n_components)
> --
>     Gael Varoquaux
>     Research Director, INRIA
>     http://gael-varoquaux.info            http://twitter.com/GaelVaroquaux
> _______________________________________________
> 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/20190916/44b6fc6e/attachment.html>


More information about the scikit-learn mailing list