Skip to content
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

Update environment in Binder for the summary of the YouTube tutorial videos #566

Open
chaitanya94 opened this issue Oct 9, 2024 · 0 comments

Comments

@chaitanya94
Copy link

chaitanya94 commented Oct 9, 2024

The Binder Notebook (notebook link and docs link) containing the Summary of PySINDy YouTube tutorial videos does not work for me. The code breaks at the first instance of:

feature_names = ['x', 'y', 'z']
sparse_regression_optimizer = ps.STLSQ(threshold=0)  # default is lambda = 0.1
model = ps.SINDy(feature_names=feature_names, optimizer=sparse_regression_optimizer)
model.fit(x_train, t=dt)
model.print()

And gives the error

AttributeError: module 'numpy' has no attribute 'math'

I believe this is due to the incompatibility of the Numpy version 2.1.1 being incompatible for pySINDy version 1.7.3 (example here). An update to the notebook environment should solve things.

@chaitanya94 chaitanya94 changed the title [BUG] Update environment in Binder for the summary of the YouTube tutorial videos Update environment in Binder for the summary of the YouTube tutorial videos Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant