Jacob Stevens-Haas
Jacob Stevens-Haas
# Applying control additively You can use a `GeneralizedLibrary` to combine libraries and only apply the libraries to certain features. To wit, if * $y$ has two terms represented by...
Can you share the code to create the generalized or customized library? I'm not sure if this is a coding issue or a data/regression issue. Also, FWIW, you called this...
Typically, `GeneralizedLibrary` creates a composite library with different inputs for each library. However, SINDy will use the complete library for every equation. There is the option to set some library...
`ConstrainedSR3` uses the `constraint_lhs` and `constraint_rhs` arguments to set terms equal to zero. For example, let's say you're fitting the equations: $$ \begin{aligned} \dot x_1 &= \theta_{11} f_1(x_1) + \theta_{12}...
> Thanks for reply. And if I want to make both θ11,θ12 in equation 1 to be zero. How can achieve that? We don't have a great way to identify...
> And I managed to define what I wanted about the customized library but it gave me the "ConvergenceWarning: SR3._reduce did not converge after 30 iterations." what would be the...
The infinity value is because you have discovered an unstable model and the integration blows up. You have to catch it by using a warnings filter to turn `Warning` into...
Good catch, and thanks for providing this! I can reproduce on 1.7.5 and on `master`. ~The bug was introduced when creating `EnsembleOptimizer` was added to replace the old method of...
Actually, it looks like the bug predates `EnsembleOptimizer`. I believe it happens when dropping terms out of a library ensemble, but not adjusting the initial guess. I'm not sure what...
Thanks for finding this! I can recreate this on master. Here's a simpler example ```python from pysindy import CustomLibrary, GeneralizedLibrary, PolynomialLibrary import numpy as np f_list = [lambda x: x]...