Scalar parameters with constraints #987
Answered
by
jheek
ingmarschuster
asked this question in
Q&A
-
I'm thinking of making jaxRK, a research library for advanced kernel methods, depend on linen for easing gradient based optimization. |
Beta Was this translation helpful? Give feedback.
Answered by
jheek
Feb 5, 2021
Replies: 1 comment 3 replies
-
If you want to define the parameter and the constraint together, you could define a special type for it like:
That would allow you to later recover the parameters with their constraints. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ingmarschuster
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to define the parameter and the constraint together, you could define a special type for it like:
That would allow you to later recover the parameters with their constraints.