Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc/project structure #176

Merged
merged 35 commits into from
Nov 22, 2022
Merged

Conversation

michalk8
Copy link
Collaborator

@michalk8 michalk8 commented Nov 16, 2022

TODOs:

  • deal with examples/
  • update docstrings to reflect the new structure
  • update notebook imports
  • update links in notebooks
  • update docs
  • update README.rst
  • update CONTRIBUTING.rst
  • fix UnbalancedBures

closes #168

@michalk8 michalk8 self-assigned this Nov 16, 2022

c(x,y) = norm(x) + norm(y) + pairwise(x,y)
c(x,y) = norm(x) + norm(y) + pairwise(x,y)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this won't look good with maths

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it renders ok-ish, maybe we can just replace norm(x) with ||x||

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2022

Codecov Report

Merging #176 (aea8912) into main (c9ff6fb) will decrease coverage by 2.08%.
The diff coverage is 84.89%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #176      +/-   ##
==========================================
- Coverage   84.21%   82.12%   -2.09%     
==========================================
  Files          51       51              
  Lines        5118     5187      +69     
  Branches      521      527       +6     
==========================================
- Hits         4310     4260      -50     
- Misses        657      781     +124     
+ Partials      151      146       -5     
Impacted Files Coverage Δ
ott/math/unbalanced_functions.py 100.00% <ø> (ø)
ott/tools/gaussian_mixture/fit_gmm.py 74.07% <50.00%> (-0.32%) ⬇️
ott/tools/segment_sinkhorn.py 43.75% <60.00%> (ø)
ott/tools/sinkhorn_divergence.py 62.50% <60.00%> (+0.68%) ⬆️
ott/solvers/was_solver.py 90.90% <66.66%> (ø)
ott/tools/transport.py 83.11% <68.57%> (-12.72%) ⬇️
ott/problems/quadratic/gw_barycenter.py 28.82% <70.00%> (ø)
ott/types.py 70.00% <70.00%> (ø)
ott/problems/quadratic/quadratic_costs.py 70.83% <70.83%> (ø)
ott/problems/linear/potentials.py 81.00% <75.00%> (ø)
... and 40 more

@michalk8 michalk8 requested a review from marcocuturi November 22, 2022 14:14
Copy link
Contributor

@marcocuturi marcocuturi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this macro PR Michal. I think we're ready for v.0.3.0!

@michalk8 michalk8 added documentation Improvements or additions to documentation enhancement New feature or request bugfix labels Nov 22, 2022
@michalk8
Copy link
Collaborator Author

Thanks a lot for this macro PR Michal. I think we're ready for v.0.3.0!

Thanks, will let the tests pass and merge. For v0.3.0, would still consider closing more issues, will create a milestone.

@michalk8 michalk8 merged commit 156ef2b into ott-jax:main Nov 22, 2022
@michalk8 michalk8 deleted the misc/project-structure branch November 22, 2022 17:38
michalk8 added a commit that referenced this pull request Jun 27, 2024
* Reorganize repo structure

* Update PC docs

* Update imports, fix some types

* Fix more types, pet-peeves

* Fix tests

* Update cost funcs and potentials

* Fix LR initializer

* Fix k-means initializer

* Move `utils`

* Update imports in notebooks

* Update geometry docs

* Update initializers

* Update math docs

* Update problem docstrings

* Update `solvers` docstrings

* Update `tools` docstrings

* Remove remaining `core` mentions from docstrings

* Start updating documentation

* Fix typing

* Update solvers docs

* Add initializers

* Update docs

* Fix MetaOT links

* Fix bibliography links

* Fix more links in the notebooks

* Follow line length in README.md

* Update `tests` structure

* Update badges

* Add TODOs, fix citation in `index.rst`, move `implicit_diff`

* Fix implicit_diff, TODOs in costs

* Use `jax.lax.cond` in `UnbalancedBures`

* Fix `UnbalancedBures`

* Update CI versions

* Fix UnbalancedBures's norm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restructuring the codebase
3 participants