2012/5/14 Daniel Duckworth <[email protected]>:
> For those familiar with this function in sklearn/utils/validation.py, I was
> wondering why sparse matrices are passed through silently without respecting
> the `dtype` or `order` arguments.  I can understand why one would want to
> ignore `order` due to how sparse matrices are designed, but `dtype` is an
> argument for all sparse matrix constructors.  Why is this ignored?

Probably because none of the estimators that want sparse matrices care
about the dtype. Mind you, this is documented: "sparse matrices are
passed through." (But if necessary, we can change this, or make it
even more explicit in the docstring.)

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to