question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Consistency] Default behaviour of SVD vs QR

See original GitHub issue

Problem The current default behaviour of linalg.svd computes the full decomposition by setting full_matrices=True by default. On the other hand, the default behaviour of linalg.qr specifies mode="reduced" by default.

Proposal Change de default to full_matrices=False in linalg.svd. In most cases the reduced SVD is good enough. Even more, it’s better to do less work by default and just make the more expensive operation opt-in.

cc @rgommers @mruberry

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jakirkhamcommented, Jan 26, 2022

Yeah we don’t even have full_matrices=True as an option in Dask currently. It is implemented as full_matrices=False. Though we do have an open issue about adding this ( https://github.com/dask/dask/issues/3576 )

1reaction
lezcanocommented, Jul 26, 2021

Edited 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

When solving a linear system, why SVD is preferred over QR ...
A is rank-deficient: Here, QR without pivoting is faster, but less reliable than the SVD, which is slower. So, if you value reliability...
Read more >
QR Factorization and Singular Value Decomposition
when A is singular, “fat”, or otherwise poorly-specified? • QR Factorization. – Householder method. • Singular Value Decomposition. • Total least squares.
Read more >
SVD, PCA, KLT, CCA, and All That Contents 1. Vector and ...
singular value of the SVD decomposition of A, or equivalently, the square-root of ... obtained via the SVD and via the QR factorization...
Read more >
Matrix factorizations and low rank approximation
The ID has several advantages, as compared to, e.g., the QR or SVD factorizations: • If A is sparse or non-negative, then C...
Read more >
Singular value decomposition of symbolic matrix - MATLAB svd
This option allows you to specify whether the singular values are returned as a column vector or diagonal matrix. The default behavior varies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found