Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raquellewei committed Apr 11, 2024
2 parents 00df1ce + 4367eec commit f529729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ In practice, we've observed that the matrix `A` is rank deficient, yet over-dete
Thus there is no unique solution to `Ax=y` where `y` is the vector of pairwise distances between all KOs. We can,
however, find a unique "shortest length" solution by adding a regularization term to the objective function:
```
min ||Ax - y||^2 + lambda * ||x||^2
min ||Ax - y||_2^2 + lambda * ||x||_1^2
s.t. x>=0
```
where `lambda` is a regularization parameter. This can be cast as a NNLS problem via:
```
min ||A'x - y'||^2
min ||A'x - y'||_2^2
s.t. x>=0
where
A' = [A; sqrt(lambda)*ones(1, n)]
Expand Down

0 comments on commit f529729

Please sign in to comment.