eqdisco.dynamics.SINDy#
- class eqdisco.dynamics.SINDy(degree=2, functions=(), library=None, method='stlsq', threshold=0.1, ridge=0.0, normalize=True, derivative_method='finite_difference', window=None, feature_names=None)[source]#
Bases:
BaseEstimatorSparse identification of nonlinear dynamics (Brunton, Proctor and Kutz, 2016).
Each derivative \(\dot z_i\) is regressed on a library \(\Theta(\mathbf Z)\) of candidate terms by a sparse solver.
- Parameters:
- degree
int, default=2 Degree of the polynomial library.
- functionssequence
ofstr, default=() Unary functions of the states added to the library.
- library
list,optional Explicit library (expressions or strings over the state and input names).
- method{“stlsq”, “frols”, “lasso”}
- threshold
float, default=0.1 STLSQ threshold (on coefficients scaled by the standard deviations of the term and of the derivative when
normalize; on raw coefficients otherwise).- ridge
float, default=0.0 - normalizebool, default=True
- derivative_method{“finite_difference”, “savgol”, “spline”}
Derivative estimate when
tis given (finite differences, as in PySINDy; use"savgol"or"spline"for noisy data).- window
int,optional - feature_names
listofstr,optional Names of the states (then of the inputs).
- degree
- Attributes: