[scikit-learn] Truncated svd not working for complex matrices

Olivier Grisel olivier.grisel at ensta.org
Thu Aug 10 10:13:16 EDT 2017

I have no idea whether the randomized SVD method is supposed to work for
complex data or not (from a mathematical point of view). I think that all
scikit-learn estimators assume real data (or integer data for class labels)
and our input validation utilities will cast numeric values to float64 by
default. This might be the cause of your problem. Have a look at the source
code to confirm. The reference to the paper can also be found in the
docstring of those functions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170810/1041cdc6/attachment.html>

More information about the scikit-learn mailing list