Skip to content

cooper-org/cooper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository Coverage

Full report

Name Stmts Miss Cover Missing
src/cooper/__init__.py 13 4 69% 16-21
src/cooper/cmp.py 146 0 100%
src/cooper/constraints/__init__.py 3 0 100%
src/cooper/constraints/constraint.py 41 1 98% 58
src/cooper/constraints/constraint_state.py 29 0 100%
src/cooper/formulations/__init__.py 2 0 100%
src/cooper/formulations/formulations.py 90 2 98% 55, 57
src/cooper/formulations/utils.py 31 1 97% 164
src/cooper/multipliers/__init__.py 2 0 100%
src/cooper/multipliers/multipliers.py 63 1 98% 189
src/cooper/optim/__init__.py 5 0 100%
src/cooper/optim/constrained_optimizers/__init__.py 5 0 100%
src/cooper/optim/constrained_optimizers/alternating_optimizer.py 40 1 98% 220
src/cooper/optim/constrained_optimizers/constrained_optimizer.py 29 0 100%
src/cooper/optim/constrained_optimizers/extrapolation_optimizer.py 38 1 97% 171
src/cooper/optim/constrained_optimizers/simultaneous_optimizer.py 16 1 94% 55
src/cooper/optim/optimizer.py 49 0 100%
src/cooper/optim/torch_optimizers/__init__.py 3 0 100%
src/cooper/optim/torch_optimizers/extragradient.py 123 36 71% 85, 96, 100-101, 109, 170, 172, 174, 185, 189-191, 201, 206, 208-215, 250, 252, 254, 256, 268-270, 274, 277, 279, 293, 297, 303, 310-312
src/cooper/optim/torch_optimizers/nupi_optimizer.py 160 28 82% 134, 136, 138, 141, 149, 151, 153, 155, 192-193, 198, 215-222, 255, 284, 312-313, 346-347, 355, 365, 389, 420-421
src/cooper/optim/unconstrained_optimizer.py 14 1 93% 40
src/cooper/penalty_coefficients/__init__.py 3 0 100%
src/cooper/penalty_coefficients/penalty_coefficient_updaters.py 62 1 98% 48
src/cooper/penalty_coefficients/penalty_coefficients.py 54 0 100%
src/cooper/utils/__init__.py 3 0 100%
src/cooper/utils/annotations.py 8 0 100%
src/cooper/utils/utils.py 7 0 100%
testing/__init__.py 2 0 100%
testing/cooper_helpers.py 137 2 99% 267, 298
testing/utils.py 45 12 73% 36, 41, 52, 55, 58, 61-63, 67, 70, 74, 77
tests/__init__.py 0 0 100%
tests/conftest.py 7 0 100%
tests/constraints/__init__.py 0 0 100%
tests/constraints/test_constraint.py 58 0 100%
tests/constraints/test_constraint_state.py 75 0 100%
tests/formulations/__init__.py 0 0 100%
tests/formulations/test_formulation.py 72 0 100%
tests/formulations/test_formulation_utils.py 65 0 100%
tests/multipliers/__init__.py 0 0 100%
tests/multipliers/conftest.py 26 0 100%
tests/multipliers/test_explicit_multipliers.py 87 0 100%
tests/multipliers/test_implicit_multiplier.py 7 0 100%
tests/optim/__init__.py 0 0 100%
tests/optim/conftest.py 14 0 100%
tests/optim/test_constrained_optimizers.py 28 0 100%
tests/optim/test_optimizer.py 37 0 100%
tests/optim/torch_optimizers/__init__.py 0 0 100%
tests/optim/torch_optimizers/test_nupi.py 193 1 99% 40
tests/penalty_coefficients/__init__.py 0 0 100%
tests/penalty_coefficients/test_penalty_coefficients.py 52 0 100%
tests/penalty_coefficients/test_penalty_updater.py 94 0 100%
tests/pipeline/__init__.py 0 0 100%
tests/pipeline/conftest.py 132 1 99% 43
tests/pipeline/test_checkpoint.py 68 0 100%
tests/pipeline/test_convergence.py 34 0 100%
tests/pipeline/test_manual.py 170 1 99% 299
tests/test_cmp.py 225 1 99% 68
TOTAL 2667 96 96%

Setup coverage badge

Below are examples of the badges you can use in your main branch README file.

Direct image

Coverage badge

This is the one to use if your repository is private or if you don't want to customize anything.

Shields.io Json Endpoint

Coverage badge

Using this one will allow you to customize the look of your badge. It won't work with private repositories. It won't be refreshed more than once per five minutes.

Shields.io Dynamic Badge

Coverage badge

This one will always be the same color. It won't work for private repos. I'm not even sure why we included it.

What is that?

This branch is part of the python-coverage-comment-action GitHub Action. All the files in this branch are automatically generated and may be overwritten at any moment.

About

A general-purpose, deep learning-first library for constrained optimization in PyTorch

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages