-
Notifications
You must be signed in to change notification settings - Fork 5
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
"nan" output when simulating "kuramoto_sivashinsky" data in "higher_dim_example.ipynb" #4
Comments
Unable to reproduce the bug so far. Please open a python interpreter and post your numpy configuration here, i.e. the output of the following two commands:
|
Here the output of :
(with activated
|
The backend seems fine, so that's probably not it. One possible solution could be that your python uses 32 instead of 64 bit floats for whatever reason. Please post the output of:
Besides this, your numpy installation might just be bugged. Please run:
and post its output here. |
The output of:
yields:
The output of:
yields: After installing the package
The result of the numpy test was: Interestingly in the first line of the output it says On the other hand, if I run the python code (from https://docs.python.org/3/library/platform.html)
it prints Furthermore the output to All the code was run within the active |
In the last snipped it says the python version is 3.8.8, even though the numpy test uses 3.7.5 as we want it to be? With the conda environment active, please run a simple
|
Apperently the python version stated within the output of the |
…eation As a temporary fix of the Github Issue #4 regarding the problem generating the kuramoto_sivashinsky data in "higher_dim_example.ipynb", a new environment file was added: "environment_rescomp_np16p6, where the numpy version was downgraded from 1.17 to 1.16.6, since this fixed the bug. Also 2 test files were added to bin
Playing around with it a bit, the FFT may(?) indeed be the cause of the instability. This would make sense, as it's the only nontrivial operation happening in the entire simulation function. @DuncDennis: Could you checkout the new branch ks_sim_fix and see if the scipy FFT works on your machine as well? |
I checked out the branch ks_sim_fix. The two scipy lines in the pytest (which you marked in red) passed on my machine aswell for various scipy versions: scipy = 1.3.2 , 1.4.1 , 1.5.2 and 1.6.2. My numpy version was fixed at 1.17.4. The pytest result was the same for all tested scipy versions so I only attach one of the outputs. |
Very nice! In addition, we'll want to implement the Lyapunov calculation algorithm described in the SI of this Pathak paper: "Model-Free Prediction of Large Spatiotemporally Chaotic Systems from Data: A Reservoir Computing Approach" Once we have that, we can compare Lyapunov Exponents, and if they agree with the literature and the non-diverging numpy simulations, we can just use the seemingly more stable scipy fft instead of the numpy for now. (We'll still want a very simple KS simulation to compare the scipy results regardless though.) |
…l_tester Develop feature statistical tester
When simulating the
"kuramoto_sivashinsky"
data in the example "higher_dim_example.ipynb", the values in the resulting numpy arraysim_data
are diverging (nan) for timesteps larger than ~ 620.Contents of environment .yml file in a .txt file, created via
conda env export > dunc_env.yml
(.yml files are not allowed here):dunc_env.txt
The text was updated successfully, but these errors were encountered: