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

Pytree regularizer strength #197

Open
BalzaniEdoardo opened this issue Jul 23, 2024 · 0 comments
Open

Pytree regularizer strength #197

BalzaniEdoardo opened this issue Jul 23, 2024 · 0 comments

Comments

@BalzaniEdoardo
Copy link
Collaborator

Tree map the regularizer strength in the setter so that we can support very specific regularization (either a subset of paramter or individual coefficients

            strength = jax.tree_util.tree_map(lambda x: jnp.asarray(x, dtype=float), strength)  # float(strength)

We need to verify that all (solvers x regularizers x models) are compatible with a strength that is either:

  • a scalar
  • a pytree with scalar as leaves
  • a pytree with arrays that matches the parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant