Add sparse simplex, transport, and Birkhoff projections from JAXopt#1545
Add sparse simplex, transport, and Birkhoff projections from JAXopt#1545aymuos15 wants to merge 1 commit intogoogle-deepmind:mainfrom
Conversation
|
Thanks! I'd ask one of the project maintainers, perhaps @rdyro, about the desired API. |
|
It looks pretty good to me. Just to be sure @aymuos15 :
Thanks again! |
f4a0b8c to
55523dc
Compare
|
I did just push a fix for the docstrings. Thank you very much for pointing that out. @vroulet For simplex, I have made sure we are matching everything. For transport and birkhoff, they are usable with an outside solver. |
Transport/Birkhoff projections require a solver via make_solver argument.
55523dc to
c8e85fc
Compare
|
Ok, would it be possible to make two separate PRs? One for the sparse simplex projection and one for the transport/birkhoff projections. The problem with the transport/birkhoff is that (i) it requires a solver, (ii) the api for the solver is not documented and it takes a specific form like |
|
Okay, that's a very fair argument. Thank you. I will change this to just the sparse simplex. Instead of raising another PR right away, should I first raise a separate issue to discuss what the default solver should be (or continue the convo in one of the other issues)? |
|
@aymuos15 you may raise the issue and open a discussion with maybe @carlosgmartin if he's interested. For now, just prune this PR from the Birkhoff and transport projections. I'm happy to merge after that. Thanks again! |
I have set it up so one can feed the solver for Transport/Birkhoff projections via make_solver argument. @carlosgmartin for this PR is this enough (as the tests are namesake for these) or should I only port the sparse_simplex for now?
Continuation of #1280, #1351 and #1439