New Induced Matrix Distribution: Approximate Leverage Scores #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implementation of a new induced matrix distribution using the approximate leverage scores of the matrix.
Method
Let$A \in \mathbb{R}^{n \times d}$ . Let $\Pi_1 \in \mathbb{R}^{r_1 \times n}$ be a $\epsilon$ -Fast Johnson-Lindenstrauss Transform, and $\Pi_2 \in \mathbb{R}^{d \times r_2}$ be an $\epsilon$ -Johnson-Lindenstrauss Transform. In the reference, $\Pi_1$ is formed by the subsampled randomized hadamard transform and an example distribution for $\Pi_2$ is introduced in section 2.2.
row_distribution = true
andLet the SVD of$\Pi_1A = U \Sigma V^\intercal$ and let $R^{-1} = V \Sigma^{-1}$ . Then, define
which is the matrix that will be used to construct the distribution. In particular, given$\Omega$ the probability weight assigned to the $i^{th}$ row of $A$ is
If$A^\intercal$ .
row_distribution = false
, the same computation is carried out onChanges
The method is implemented under
linear_samplers/induced_distributions
, and is composed of two methods._approximate_leverage_scores
takes as input a matrixA
, and two sketching methods, and returnsapproximate_leverage_scores_distribution
takes as inputA
, two sketching methods, and a boolean flag, and returns a distribution using the approximate leverage scores.approximate_leverage_scores_distribution
calls_approximate_leverage_scores
.Closes #63