Comments (2)
Nice catch !
The issue is that the jax.scipy.sparse.linalg
API uses A, b, x0
signature whereas the jaxopt.linear_solve
API uses matvec, b, ridge, init
so we cannot write code that supports both. We have to chose between the canonical Jaxopt way (with init
), but unfortunately it is not exposed publicly... or the jax.scipy.sparse.linalg
that the user knows about, but is incompatible... Upsettingly, neither keyword nor positional arguments can do the trick.
Hopefully in the next iterations of the library we will have a well defined API.
from jaxopt.
One possibility could be to add a * between positional and kwargs for the jaxopt solvers? This would at least remove error ambiguity.
from jaxopt.
Related Issues (20)
- `verbose=False` is not working as expected for `NonlinearCG` HOT 1
- Stochastic L-BFGS algorithm implementation
- Stopping condition 'madsen-nielsen' incorrect
- unit test failures on aarch64 linux with scipy 1.12
- `LevenbergMarquardt` implementation does not accept PyTree parameters
- diag(JTJ) can be more efficient
- JAXOPT Projected Gradient
- "invalid escape sequence" warning in `BoxOSQP` docstring
- Error when taking gradient wrt parameters in BoxOSQP
- Disable warnings in vmap or print to stderr HOT 2
- Constraint violation causes L-BGFS-B to fail HOT 1
- LinearSolveTest.test_solve_sparse fails with jax 0.4.26 HOT 1
- Tests crash/failures on `aarch64-linux` with latest jax(lib) (0.4.28)
- Projected gradient for multidimensional array
- Annoying warning in 3.12
- pytrees bounds for `jaxopt.ScipyBoundedMinimize` HOT 1
- Jaxopt implementation of scipy's linprog
- GaussNewton and LevenbergMarquardt on multidimensional arrays
- Library tracer leak
- Levenberg Marquardt with box constraints? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaxopt.