Description Usage Arguments Details Value Acknowledgements Note Author(s) References See Also Examples
An internal function that uses an approximation of the SVD using the first k singular values of A to calculate the pseudo-inverse. Only used when the cue-cue matrix contains more than 20,000 cues.
1 | random.pseudoinverse(m, verbose=F, k = 0)
|
m |
A matrix. |
k |
If k = 0, the default, k will be set to the size of 3/4 of the singular values. If not, the k-rank approximation will be calculated. |
verbose |
Display diagnostic messages or not. |
This idea was proposed by Gunnar Martinsson Associate Professor and Director of Graduate Studies Department of Applied Mathematics, University of Colorado at Boulder http://amath.colorado.edu/faculty/martinss/ And with ideas from: Yoel Shkolnisky and his Out-of-Core SVD code: https://sites.google.com/site/yoelshkolnisky/software
The approximate pseudoinverse of the input matrix
Thanks to Gunnar for his help with this!
No temporary files are used.
Cyrus Shaoul
"Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions" Nathan Halko, Per-Gunnar Martinsson, Joel A. Tropp http://arxiv.org/abs/0909.4061
estimateWeights, estimateWeightsCompact,
1 | #None (internal function)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.