Hi,

Can you provide a gist of your code as to help you?


The pr 2458 isnt finished yet and there is possibly some quirk cases where
it might fail. However in the branch
https://github.com/arjoly/scikit-learn/commits/sparse-label_binarizer,
I almost finished the label binarizer part. 

I can try to find some time to finish the sparse label binarizer if you 
want to add sparse output support to the OneVsRestClassifier. 
Several hints on how to do it properly has already been suggested in
- https://github.com/scikit-learn/scikit-learn/pull/2458
- 
https://github.com/arjoly/scikit-learn/commit/fc18c35047bd14b71862377cc34ad9b0ae9f5b65

Best,
Arnaud

On 24 Mar 2014, at 01:17, Anitha Gollamudi <[email protected]> wrote:

> Hi
> 
> 
> For a multi-label classification problem, I am using labelBinarizer
> which is giving me memory error.  I found a pull request for this
> issue. I am wondering if I can pull it now?
> 
> https://github.com/scikit-learn/scikit-learn/pull/2458
> 
> 
> Also applying to the latest trunk(master), gives me an error. I am not
> sure if I am doing right.  Can someone suggest an alternative to using
> LabelBinarizer? (almost a newbie to scikit, so any suggestion welcome)
> 
> 
> curl https://github.com/scikit-learn/scikit-learn/pull/2458.patch | git am
> 
>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>                                 Dload  Upload   Total   Spent    Left  Speed
> 100 61961  100 61961    0     0   123k      0 --:--:-- --:--:-- --:--:--  360k
> Applying: Modify label_binarize
> /home/ag68/scikit/scikit-learn/.git/rebase-apply/patch:31: trailing 
> whitespace.
>        Y = csc_matrix((data, (row, col)), shape = (len(y), len(classes)))
> error: sklearn/preprocessing/label.py: does not match index
> Patch failed at 0001 Modify label_binarize
> 
> 
> -Anitha
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to