Repository navigation
Optax vs Cvxpy #881
Answered
by
fabianp
pushkar5586
asked this question in
General
Optax vs Cvxpy
#881
|
Hi All, Given that one can solve almost any convex optimization problem by writing down the objective function in Jax, and optimizing it using an appropriate gradient descent algorithm in Optax; is there any inherent benefit of using Cvxpy over Jax+Optax? Thanks. |
Answered by
fabianp
Mar 24, 2024
Replies: 1 comment 1 reply
|
cvxpy comes with convergence guarantees, which, at the moment, optax lacks. Also, currently most of the solvers in optax require some hyperparameter tuning (like the learning rate). I think most of the solvers in cvxpy on the other hand, don't require hyperparameter tuning. The downside of cvxpy is that it's not applicable to nonconvex problems, and that if often scales worse than optax for very large problems |
1 reply
Answer selected by
pushkar5586
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cvxpy comes with convergence guarantees, which, at the moment, optax lacks. Also, currently most of the solvers in optax require some hyperparameter tuning (like the learning rate). I think most of the solvers in cvxpy on the other hand, don't require hyperparameter tuning.
The downside of cvxpy is that it's not applicable to nonconvex problems, and that if often scales worse than optax for very large problems