dask 2021.10.0

ParametersBackRef
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 .

Parameters

n: int :

Column/row dimension of original matrix

q: int :

Size of the desired subspace (the actual size will be bigger, because of oversampling, see da.linalg.compression_level )

n_oversamples: int, default=10 :

Number of oversamples used for generating the sampling matrix.

min_subspace_size : int, default=20

Minimum subspace size.

Compression level to use in svd_compressed

Examples

This example is valid syntax, but we were not able to check execution
>>> compression_level(100, 10)
20
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

dask.array.linalg.compression_level

Local connectivity graph

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


File: /dask/array/linalg.py#616
type: <class 'function'>
Commit: