cooper-org / cooper

A general-purpose, deep learning-first library for constrained optimization in PyTorch
https://cooper.readthedocs.io/
MIT License
107 stars 11 forks source link

Refactor Project Layout #95

Closed merajhashemi closed 2 months ago

merajhashemi commented 3 months ago

This PR introduces a series of structural and configuration changes aimed at improving the maintainability, performance, and simplicity of the project. Key changes include transitioning to a src-based layout, consolidating configuration files, and optimizing the linting setup.

Changes

github-actions[bot] commented 2 months ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/cooper
  __init__.py 19
  cmp.py
  src/cooper/constraints
  constraint.py
  src/cooper/formulations
  formulations.py
  utils.py 154
  src/cooper/multipliers
  multipliers.py
  penalty_coefficient_updaters.py 12
  penalty_coefficients.py
  src/cooper/optim
  optimizer.py
  unconstrained_optimizer.py 31
  src/cooper/optim/constrained_optimizers
  alternating_optimizer.py 155
  constrained_optimizer.py
  extrapolation_optimizer.py 66
  simultaneous_optimizer.py 22
  src/cooper/optim/torch_optimizers
  extragradient.py 166, 168, 170, 211, 242, 244, 246, 248, 260
  nupi_optimizer.py 90, 92, 94, 97, 105, 107
  src/cooper/utils
  utils.py
  tests
  test_cmp.py
  tests/helpers
  cooper_test_utils.py 254
  testing_utils.py
  tests/multipliers
  test_explicit_multipliers.py
  tests/optim/torch_optimizers
  test_nupi.py
  tests/pipeline
  conftest.py 66
  test_checkpoint.py
  test_manual.py 272
Project Total  

The report is truncated to 25 files out of 33. To see the full report, please visit the workflow summary page.

This report was generated by python-coverage-comment-action