Ok. If no one strongly disagree than I'll submit a DOC PR for this.
I was thinking of this page: http://scikit-learn.org/stable/datasets/
E/
2014-07-29 14:50 GMT+02:00 Lars Buitinck <larsm...@gmail.com>:
> 2014-07-29 14:40 GMT+02:00 Joel Nothman <joel.noth...@gmail.com>:
> > I think the scipy folks intend that numpy-like setting operations should
> > suffice for many cases (although be a bit slower than the technique
> you've
> > illustrated).
> >
> > E.g. you can use:
> >
> > X[i, nonzero] = data[nonzero]
> >
> > to replace some lines of Lars' code.
> >
> > One disadvantage of this approach is needing to know X.shape beforehand.
>
> I've already managed to push a 10-line bag of words vectorizer into
> the CSR docstring [1], so this one shouldn't be too much of a problem
> ;)
>
> [1]
> https://github.com/scipy/scipy/commit/86774f6f81ccaa7bde03a18865efd02ea5f32741
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general