-
Notifications
You must be signed in to change notification settings - Fork 309
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
Extract common functionality from SINDy
to _BaseSINDy
#562
base: master
Are you sure you want to change the base?
Conversation
This will eventually enable SSSindy.print, as well as a simpler discrete and SINDyPI class
SINDy.equations(), equations(), print_model() were written with extra generality that never ended up being used. This commit removes such generality and throws away these indirected helper functions in favor of a single method.
5182f24
to
79f43bb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #562 +/- ##
==========================================
+ Coverage 95.30% 95.33% +0.02%
==========================================
Files 37 37
Lines 4046 4048 +2
==========================================
+ Hits 3856 3859 +3
+ Misses 190 189 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
79f43bb
to
b7eac64
Compare
Also: * fix sphinx cross-linking error * remove unused print_model
b7eac64
to
2b3871b
Compare
Hey Alan, I put you as a reviewer in case you want an eye into this process. This is the beginning of what we talked about in the last meeting. @AHsu98, @MalachiteWind, I'm going to add you as collaborators so you can review these changes too. |
Begin #351
This pull request begins the abstraction of the
SINDy
class, which handles a lot of methods with special cases, to a variety of classes that reflect fundamental differences between problem formulations. Here, I pull out_BaseSINDy
, which contains basic information about the feature library, system dimension, and printing the equations.Future PRs will make Weak and discrete their own classes, modify feature libraries to be amenable to jax, numpy, and cvxpy arrays, and introduce the Single-Step SINDy class and associated optimizer/problem setup.