-
Notifications
You must be signed in to change notification settings - Fork 328
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
[BUG] SINDyDerivative does not handle PDEs #472
Labels
bug
Something isn't working
Comments
Jacob-Stevens-Haas
changed the title
[BUG] Error in derivative package when differentiating data
[BUG] SINDyDerivative does not handle PDEs
Feb 7, 2024
I think this is because ps.SINDyDerivative(kind="kalman")(X, t, axis=1)
# TypeError: __init__() got an unexpected keyword argument 'axis'
ps.FiniteDifference()(X, t)
# Error, expected, because no way that FiniteDifference knows to differentiate the second axis
ps.SpectralDerivative()(X, t)
# no error, but should, because Spectral is assuming it should differentiate the 0th axis
ps.FiniteDifference(axis=1)(X, t)
# no error, correct
ps.SmoothedFiniteDifference(axis=1)(X, t)
# correct, behaves like FiniteDifference |
This is not an issue on pysindy version 1.7.6.dev278+g098d231, but is an issue on pysindy version 1.7.6.dev315+ga43e217 |
yb6599
added a commit
to yb6599/pysindy
that referenced
this issue
Jun 2, 2024
yb6599
added a commit
to yb6599/pysindy
that referenced
this issue
Jul 9, 2024
Jacob-Stevens-Haas
added a commit
that referenced
this issue
Jul 15, 2024
Differentiation of Multidimensional Arrays in SINDyDerivative
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to differentiate pde data of shape (256, 100, 1) and len(t_train)=100 and I keep getting an error with the message "Invalid shape of X". Here is the simplified version of the code and the corresponding error.
Reproducing code example:
Error message:
PySINDy/Python version information:
1.7.6.dev215+g9c73768 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered: