The Bunch is basically a custom interface to dict with a funny name (though
semantically the data is more like a [named]tuple). Better to use dict that
Python learners are likely to know about. And the transition can involve a
wrapper that supports attribute access as well. ~J


On Tue, Jun 18, 2013 at 8:23 AM, Lars Buitinck <[email protected]> wrote:

> 2013/6/17 Gael Varoquaux <[email protected]>:
> >> Now, how to do that?
> >
> > We don't. I am tired of completely dumming down our code to make it
> > usable by people who don't understand what they do. All it does is give
> > us extra work in terms of support.
>
> The Bunch is something I'd like to kill just for the disproportionate
> number of questions that it raises, but to be fair, it is mentioned at
> [1] and [2] and shows up in new users' Python sessions, so it's bound
> to evoke curiosity.
>
> I just changed [2] in the dev version. Maybe we should change the
> docstring as well and/or rename the thing to _Bunch.
>
>
> [1]
> http://scikit-learn.github.io/scikit-learn-tutorial/working_with_text_data.html
> [2] http://scikit-learn.org/stable/datasets/index.html
>
>
> --
> Lars Buitinck
> Scientific programmer, ILPS
> University of Amsterdam
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to