scikit-learn/scikit-learn — pull request #1318 by vene (2012-11-02 16:30:44+00:00)
Title: [WIP] SVD / PCA sign flipping to solve ambiguity

As discussed in Issue #1260 and previously on the mailing list,
this PR adds a function that adjusts the output of an SVD such that
there is no sign ambiguity like it usually happens.

Open questions:
- Is this way OK or should it be a parameter in randomized_svd, or a
wrapper that calls the svd itself?

- Should the adjustment be made in-place?

- This doesn't work if `full_matrices=True` but AFAIK we never use that.
Should I make it work?