GithubHelp home page GithubHelp logo

Comments (7)

Jacob-Stevens-Haas avatar Jacob-Stevens-Haas commented on August 19, 2024 1

zsh needs to escape any square brackets

You can also just pip install cvxpy scs, and you'll probably get compatible versions.

from pysindy.

niuyushuo avatar niuyushuo commented on August 19, 2024 1

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.

Jacob-Stevens-Haas avatar Jacob-Stevens-Haas commented on August 19, 2024 1

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.

Jacob-Stevens-Haas avatar Jacob-Stevens-Haas commented on August 19, 2024

Where are you seeing a deprecation warning in SINDyPIOptimizer? Currently it's the only one that will find implicit ODEs/PDEs

from pysindy.

niuyushuo avatar niuyushuo commented on August 19, 2024

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.

Jacob-Stevens-Haas avatar Jacob-Stevens-Haas commented on August 19, 2024

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.

niuyushuo avatar niuyushuo commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.