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

Enable D* checks #319

Merged
merged 49 commits into from
Feb 27, 2023
Merged

Enable D* checks #319

merged 49 commits into from
Feb 27, 2023

Conversation

michalk8
Copy link
Collaborator

@michalk8 michalk8 commented Feb 27, 2023

@michalk8 michalk8 added the enhancement New feature or request label Feb 27, 2023
@michalk8 michalk8 self-assigned this Feb 27, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2023

Codecov Report

Merging #319 (f840639) into main (b18f9fb) will increase coverage by 0.04%.
The diff coverage is 74.67%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
+ Coverage   88.78%   88.82%   +0.04%     
==========================================
  Files          52       52              
  Lines        5715     5657      -58     
  Branches      587      863     +276     
==========================================
- Hits         5074     5025      -49     
+ Misses        513      506       -7     
+ Partials      128      126       -2     
Impacted Files Coverage Δ
src/ott/geometry/epsilon_scheduler.py 94.28% <ø> (-0.16%) ⬇️
src/ott/geometry/grid.py 91.53% <0.00%> (-0.07%) ⬇️
src/ott/geometry/segment.py 100.00% <ø> (ø)
src/ott/math/fixed_point_loop.py 100.00% <ø> (ø)
src/ott/math/unbalanced_functions.py 100.00% <ø> (ø)
src/ott/problems/linear/linear_problem.py 100.00% <ø> (ø)
src/ott/solvers/linear/discrete_barycenter.py 87.62% <0.00%> (-0.13%) ⬇️
src/ott/tools/gaussian_mixture/fit_gmm.py 75.60% <0.00%> (ø)
src/ott/tools/gaussian_mixture/gaussian_mixture.py 94.57% <0.00%> (-0.05%) ⬇️
src/ott/tools/gaussian_mixture/linalg.py 100.00% <ø> (ø)
... and 40 more

@@ -292,6 +286,7 @@ def create_train_state(
rng: jax.random.PRNGKeyArray,
optimizer: optax.OptState,
input: Union[int, Tuple[int, ...]],
# TODO(michalk8): do not ignore or delete in code?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bamos are the params supposed to be ignored?

Copy link
Contributor

Choose a reason for hiding this comment

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

params here are for initialization and shouldn't be ignored, they're passed into NeuralTrainState.create

@michalk8 michalk8 merged commit fe60872 into ott-jax:main Feb 27, 2023
@michalk8 michalk8 deleted the fix/pre-commit branch February 27, 2023 21:55
michalk8 added a commit that referenced this pull request Jun 27, 2024
* Re-enable D* flake8

* Fix `D*` errors

* Do not ignore D411

* Remove ignored `F401`

* Enable `B008`, add `optax` to `intersphinx_mapping`

* Remove old `.flake8` config

* Add `SortingInitializer` to docs

* Enable `E501`

* Fix docs in `{costs,geometry}.py`

* Update `pointcloud.py`

* Fix `initializers.py`

* Fix `matrix_square_root.py`

* Fix `unbalanced_functions.py`

* Fix more docstrings, add missing licenses

* Fix typo in `FreeWassersteinBarycenter`

* Fix `sinkhorn_lr.py`

* Fix `models.py`

* Fix `neuraldual.py`

* Fix `gromov_wasserstein.py`

* Fix `plot.py`

* Fix `tests/`

* Fix `utils.py`

* Fix `k_means.py`

* Fix `gaussian.py`

* Fix `fit_gmm_pair.py`

* Fix typo

* Make `create_sample_generators` private

* Unable more flake8's in docs

* Add more testing flake8

* Add `SIM`

* Add `RET`

* Undo adding docs

* Add more type hints

* Use double quotes always

* Add explicit quotes normalization

* Udpate comment

* Remove commented flake8s in `pyproject.toml`

* Fix typo in typing

* Skip graph factor cache test

* Fix float in test instead of an integer

* Improve `CostFn` docstring

* Update `pairwise` docs

* Remove `[d,]` from docs

* [ci skip] Mention `gamma > 0`

* Remove module docs, add missing copyright

* [ci skip] Fix docs rendering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable and fixD* linter checks
3 participants