Christian,

I've pushed a Pull Request that fixes the issue:

https://github.com/scikit-learn/scikit-learn/pull/1141/

sorry for the inconveniences caused.

best,
 Peter

2012/9/12 Peter Prettenhofer <peter.prettenho...@gmail.com>:
> 2012/9/12 Olivier Grisel <olivier.gri...@ensta.org>:
>> 2012/9/12 Christian Jauvin <cjau...@gmail.com>:
>>> (1) When I try to use it with a sparse matrix I get (for a binary problem):
>>>
>>> --> 585         proba = np.ones((len(X), 2), dtype=np.float64)
>>> --> 175         raise TypeError("sparse matrix length is ambiguous;
>>> use getnnz()"
>>>     176                          " or shape[0]")
>>
>> Can you please push a minimalistic reproduction script (with randomly
>> generated data if possible) on http://gist.github.com (or inline in
>> the mail if short enough)?
>>
>> Please also include the full traceback of the errors you get rather
>> than such short snippets.
>
> Oh no... this looks like a bug that wasn't covered by my test suite -
> the bug was introduced by my last refactoring - I've added a test to
> reproduce the issue - I'll push a fix soon.
>
>
> --
> Peter Prettenhofer



-- 
Peter Prettenhofer

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to