Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weighted L2 norm - weight with a CIL linear operator? #1984

Open
MargaretDuff opened this issue Nov 8, 2024 · 0 comments
Open

Weighted L2 norm - weight with a CIL linear operator? #1984

MargaretDuff opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MargaretDuff
Copy link
Member

Description

Discussed with @bosschmidt at the CIL user meeting hackathon.

For the weighted L2 norm in CIL, the weight value can be a scalar or can be a CIL data container :

weight: a `scalar` or a `DataContainer` with the same shape as the intended domain of this `WeightedL2NormSquared` function

Mathematically, $F(x) = |x|_{W,2}^2 = \Sigma_iw_ix_i^2 = \langle x, Wx\rangle = x^TWx$ where $W=\text{diag}(weight)$ if weight is a DataContainer or $W=\text{weight} I$ if weight is a scalar.

It might be useful to extend this so that $W$ is a linear operator whose range and domain are the same and contain the input $x$.

This would allow the weighted L2norm to be weighted by non-diagonal matrices.

@MargaretDuff MargaretDuff added the enhancement New feature or request label Nov 8, 2024
@MargaretDuff MargaretDuff self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant