DynaDojo / dynadojo

An Extensible Benchmarking Platform for Scalable Dynamical System Identification
https://dynadojo.github.io/dynadojo/
MIT License
14 stars 11 forks source link

demo/bug: sporadic errors with fts_sindy_lorenz_demo #72

Open VictorHuynh opened 4 months ago

VictorHuynh commented 4 months ago

Describe the bug AssertionError: data['error'] contains np.inf Occurs ~19/20 of the time, but (strangely) is able to produce a plot ~1/20 of the time

To Reproduce Steps to reproduce the behavior:

  1. Go to demos/fts_sindy_lorenz_demo.ipynb
  2. Run the demo cell by cell
  3. Error oftentimes, but not always, occurs in the last cell
    • Need to run last cell multiple times to achieve a success

Expected behavior A plot should be generated. If not, then a way to handle exceptions that doesn't cause the program to fail

Screenshots fts_sindy_lorenz_demo, success fts_sindy_lorenz_demo, error

VictorHuynh commented 4 months ago

"data['error'] contains np.inf" suggests that there's a positive infinity somewhere in the data, probably causing an error b/c you can't exactly plot infinity. Maybe need to find what calculation is creating the infinity or a way to represent infinity in a plot?