Comments (7)
zsh needs to escape any square brackets
You can also just pip install cvxpy scs
, and you'll probably get compatible versions.
from pysindy.
zsh needs to escape any square brackets
You can also just
pip install cvxpy scs
, and you'll probably get compatible versions.
Really appreciate your response. Now it works smoothly. It takes me a while to install cvxpy.
Running a macOS Monterey Version 12.4
In case anyone else might have a similar issue. Here I list all the lines to solve this issue as following:
brew install cmake
pip install cvxpy scs
pip install pysindy cvxpy
from pysindy.
Glad it works! FWIW each package is handled separately by pip, so
pip install cvxpy scs
pip install pysindy cvxpy
is equivalent to
pip install cvxpy scs pysindy
or
pip install pysindy
pip install cvxpy
pip install scs
but since compatible versions of cvxpy and scs are contained int the pysindy cvxpy extra,
pip install pysindy[cvxpy]
Here, "cvxpy" is the (bad) name we chose to refer to compatible versions of both cvxpy and scs.
from pysindy.
Where are you seeing a deprecation warning in SINDyPIOptimizer
? Currently it's the only one that will find implicit ODEs/PDEs
from pysindy.
Where are you seeing a deprecation warning in
SINDyPIOptimizer
? Currently it's the only one that will find implicit ODEs/PDEs
Thanks for your response. My bad, it should be SINDyPILibrary is deprecated with version >1.7. But when I test the code by myself, SINDyPILibrary still works well. But get error information:
AttributeError: module 'pysindy' has no attribute 'SINDyPI'
The test code is in the third block at example of 9_sindypi_with_sympy.ipynb. The issue comes from lines:
sindy_opt = ps.SINDyPI(
threshold=1e-6,
tol=1e-8,
thresholder="l1",
max_iter=20000,
)
Also, tried
sindy_opt = ps.SINDyPIOptimizer
sindy_opt = ps.optimizers.sindy_pi.SINDyPI
They all get the no attribute error.
Thanks.
from pysindy.
The optimizer requires cvxpy and scs. Otherwise, I believe, its import is skipped, which is why you were getting the AttributeError
. Reinstall pysindy with the optional extra requirements, pip install pysindy[cvxpy]
and see if you get the results.
from pysindy.
The optimizer requires cvxpy and scs. Otherwise, I believe, its import is skipped, which is why you were getting the
AttributeError
. Reinstall pysindy with the optional extra requirements,pip install pysindy[cvxpy]
and see if you get the results.
Thanks for your response.
I tried to reinstall pysindy by 'pip install pysindy[cvxpy]' and got message 'zsh: no matches found: pysindy[cvxpy]'. Also tried to install pysindy from source and got the same message.
from pysindy.
Related Issues (20)
- Incorporate make_constraints into trapping_sr3.py HOT 8
- Initial Guess - SR3 - Custom Library [BUG] HOT 3
- [Help] Can't get the right model for 2d system HOT 3
- [DOC] WeakPDELibrary.transform does not produce output in shape specified by documentation.
- Help in figuring out the cause behind TypeError while fitting with tensor libraries HOT 7
- Let model.print() respect the same kwargs as print()
- Use `x_dot` kwarg in `model.fit` in PDEs with `WeakPDELibrary()`
- constraint_separation_index undocumented
- Do we need `test_trapping_cubic_library()`? HOT 1
- Make `IdentityLibrary` a subclass of `PolynomialLibrary`
- Make models guaranteed pickleable
- Error in '3_original_Paper' Example: Missing 'quiet' Argument in pysindy.py HOT 1
- Remove research experiments from pysindy HOT 4
- [Question]How model.predict() works for implicit ODEs function? HOT 14
- Passing custom derivatives instead of using predefined differentiation classes HOT 4
- [BUG] pytest-lazy-fixture may be dead, blocking pytest upgrades HOT 1
- `np.median(model.coef_list, axis=0)` does not give the same answer as `model.print()` from first example in ensembling documentation HOT 2
- [BUG] SINDyDerivative does not handle PDEs HOT 2
- Feature request: Manually set coefficients HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysindy.