compression_level(n, q, n_oversamples=10, min_subspace_size=20)
Given the size n
of a space, compress that that to one of size q
plus n_oversamples.
The oversampling allows for greater flexibility in finding an appropriate subspace, a low value is often enough (10 is already a very conservative choice, it can be further reduced). q + oversampling
should not be larger than n
. In this specific implementation, q + n_oversamples
is at least min_subspace_size
.
Column/row dimension of original matrix
Size of the desired subspace (the actual size will be bigger, because of oversampling, see da.linalg.compression_level
)
Number of oversamples used for generating the sampling matrix.
Minimum subspace size.
Compression level to use in svd_compressed
>>> compression_level(100, 10) 20See :
The following pages refer to to this document either explicitly or contain code examples using this.
dask.array.linalg.compression_level
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them