dynamicslab / pysindy

A package for the sparse identification of nonlinear dynamical systems from data
https://pysindy.readthedocs.io/en/latest/
Other
1.36k stars 304 forks source link

Allow STLSQ to only sparsify/regularize a subset of indices #408

Closed Jacob-Stevens-Haas closed 10 months ago

Jacob-Stevens-Haas commented 10 months ago

Designed for when the optimizer is fitting both the trajectory derivative $\dot X$ and coefficient matrix $\Xi$, and only wants to sparsify/regularize $\Xi$.

First step of #407

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 94.28% and project coverage change: +0.10% :tada:

Comparison is base (1c42d4f) 93.77% compared to head (85d6282) 93.87%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #408 +/- ## ========================================== + Coverage 93.77% 93.87% +0.10% ========================================== Files 37 37 Lines 3583 3626 +43 ========================================== + Hits 3360 3404 +44 + Misses 223 222 -1 ``` | [Files Changed](https://app.codecov.io/gh/dynamicslab/pysindy/pull/408?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dynamicslab) | Coverage Δ | | |---|---|---| | [pysindy/optimizers/stlsq.py](https://app.codecov.io/gh/dynamicslab/pysindy/pull/408?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dynamicslab#diff-cHlzaW5keS9vcHRpbWl6ZXJzL3N0bHNxLnB5) | `95.34% <94.20%> (+3.48%)` | :arrow_up: | | [pysindy/optimizers/base.py](https://app.codecov.io/gh/dynamicslab/pysindy/pull/408?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dynamicslab#diff-cHlzaW5keS9vcHRpbWl6ZXJzL2Jhc2UucHk=) | `93.75% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.