Description Usage Arguments Examples
Use leverage sampling to solve least square problem. Returns the intercept and slope
1 | algo_leverage(A, b, n_samples)
|
A |
Design matrix |
b |
Target vector |
n_samples |
Number of samples to use for leverage sampling. |
1 2 3 4 5 | A = rt(100,6)
e = rnorm(100, 0,1)
b = -A+e
res = algo_leverage(A,b,100)
print(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.