Which makes me wonder why we even use the Bunch object in the datasets
module at all.

Vlad


On Thu, Jun 13, 2013 at 12:55 PM, Olivier Grisel
<[email protected]>wrote:

> Why would you ever want to make a Bunch object?
>
> All scikit-learn method like fit / predict / transform just expect
> numpy arrays with shape (n_samples, n_features).
>
> To load images you can use scipy.misc.imread. Then converting int
> dtype to float32 or 64, then use numpy.reshape / numpy.mean to get rid
> of the width / height dimensions and color channel and finally
> numpy.hstack for concatenating individual image arrays into a big one.
>
> --
> Olivier
>
>
> ------------------------------------------------------------------------------
> 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