moscot icon indicating copy to clipboard operation
moscot copied to clipboard

Add Sparse Geodesic Cost Support

Open selmanozleyen opened this issue 11 months ago • 7 comments

Here are the steps I planned. I first want to ensure the tests work with this version and I am currently on that step.

  • [x] make sure it works on the new commit of ottjax (here: https://github.com/ott-jax/ott/commit/51a658aaa026528a3b9702e3d25c8f7af598cef0)
  • [x] don't densify sparse arrays for geodesic costs
  • [x] adjust and add tests

In order to comply to new version:

  • [x] created new solution files because loaded objects in test_regression_testing had corrupted format.
  • [x] https://github.com/theislab/moscot/issues/678
  • [x] https://github.com/ott-jax/ott/issues/509
  • [x] https://github.com/theislab/moscot/pull/686
  • [x] https://github.com/theislab/moscot/pull/688 (already included in this PR) ping: @MUCDK , @giovp
  • [ ] https://github.com/ott-jax/ott/issues/519

selmanozleyen avatar Mar 20 '24 14:03 selmanozleyen

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.19%. Comparing base (3151da7) to head (f3c54be). Report is 25 commits behind head on main.

:exclamation: Current head f3c54be differs from pull request most recent head b054584

Please upload reports for the commit b054584 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #677   +/-   ##
=======================================
  Coverage   78.19%   78.19%           
=======================================
  Files          36       36           
  Lines        3806     3806           
  Branches      706      706           
=======================================
  Hits         2976     2976           
  Misses        524      524           
  Partials      306      306           

see 2 files with indirect coverage changes

codecov[bot] avatar Apr 03 '24 23:04 codecov[bot]

in the failing tests, set tau_a, tau_b > 0.5

MUCDK avatar Apr 09 '24 07:04 MUCDK

  • try increase the taus for the failing tests for FGW/GW problems
  • default to None the n iterations

giovp avatar Apr 09 '24 07:04 giovp

I tried all of your suggestions and it only worked when I set the tau's to be 1.0 which is balanced. I checked again and it fails after this https://github.com/ott-jax/ott/commit/41906a2a1ade19aa154189fabd7c159a160c9bf3 commit specifically. I created a PR separately for the setting the defaults to None https://github.com/theislab/moscot/pull/686

selmanozleyen avatar Apr 09 '24 12:04 selmanozleyen

ok then i think we need to raise this to @michalk8 because it is not expected

giovp avatar Apr 10 '24 07:04 giovp

agree, can you maybe try to run the example without moscot, but directly with ott-jax @selmanozleyen ? This might help @michalk8

MUCDK avatar Apr 10 '24 07:04 MUCDK

agree, can you maybe try to run the example without moscot, but directly with ott-jax @selmanozleyen ? This might help @michalk8

@MUCDK ok I created it here https://github.com/ott-jax/ott/issues/519

selmanozleyen avatar Apr 17 '24 09:04 selmanozleyen