Closed Jacob-Stevens-Haas closed 2 months ago
Attention: 8 lines
in your changes are missing coverage. Please review.
Comparison is base (
2633ee0
) 93.87% compared to head (639ea9d
) 94.31%. Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
pysindy/optimizers/trapping_sr3.py | 93.39% | 7 Missing :warning: |
pysindy/optimizers/constrained_sr3.py | 93.75% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Preempted by #459 , converting back to draft.
This PR simplifies TrappingSR3, reducing it by about 250 lines. It changes the base class to
ConstrainedSR3
, deferring all calls to cvxpy to that superclass. It also makes the main algorithm clearer, so that its easier to see how different initialization arguments affect the choice of math involved (mostly because I couldn't quite understand this from the docstring). As a related effect, the_reduce
method more closely matches the algorithm in the paper.The plan is to eventually utilize superclass for combining and applying constraints, since that class is capable of doing both equality and inequality constraints, which will make it easier to include the constraints and helper functions of example 8 into trapping_sr3.py