Giter Club home page Giter Club logo

pvlachas / learningeffectivedynamics Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 1017 KB

Framework to learn effective dynamics and couple a macro scale simulator with a fast neural network latent propagator.

Home Page: https://github.com/cselab/LED

Python 82.42% Shell 17.58%
autoencoders direct-numerical-simulation equation-free-modeling kuramoto-sivashinsky lstm-neural-networks machine-learning navier-stokes-equations recurrent-neural-networks reduced-order-modeling simulations

learningeffectivedynamics's Introduction

Multiscale Simulations of Complex Systems by Learning their Effective Dynamics

Code and data for the paper: PR Vlachas, G. Arampatzis, C. Uhler, and P Koumoutsakos, Multiscale Simulations of Complex Systems by Learning their Effective Dynamics, Nature Machine Intelligence, 2022.

Demonstration on the FitzHugh Nagumo Equation (FHN)

The scripts to generate the training, validation, and test data for each application can be found in the ./Data folder. Run these scripts in the respective order, i.e. for the FHN equation:

python3 0_data_gen.py
python3 1_creating_figures.py
python3 2_create_training_data.py
python3 3_data_gen_test.py
python3 4_create_test_data.py

In case you cannot generate the data, please raise an issue. The data for the FHN equation can be also found online here. Download the compressed file, uncompress it, and lace the uncompressed folders/files in the directory ./Data/FHN/Data/.

Once the data are generated, navigate to ./Code/Experiments/FHN/Local and run any of the scripts.

Script Description
0_PCA.sh Training and testing the dimensionality reduction with PCA/DiffMaps.
1_PCA_RC.sh Training and testing a Reservoir Computer with PCA/DiffMaps on the latent space (and multiscale testing)
2_PCA_SINDy.sh PCA/DiffMaps + SINDy
3_PCA_RNN.sh PCA/DiffMaps + RNN (LSTM/GRU)
4_AE.sh Training a Convolutional Autoencoder (CNN)
5_AE_RNN.sh LED (CNN+LSTM)
5_AE_RC.sh LED (AE+RC)

These scripts train and test the respective networks or dimensionality reduction methods, and generate plots and files with diagnostics in the ./Results folder.

Data availability

  • Scripts to generate the data for the FHN and the KS equations are provided in the ./Data folder.
  • In addition, the data for the FHN equation are shared here.
  • Data for the Navier-Stokes flow past a cylinder have been generated using the in-house software library, CubismUP-2D / Cubism-AMR.

Environment Setup

To set up the python environment the poetry dependency manager is used. The dependencies are described in the pyproject.toml file. To set up the environment:

  1. Enter the project's root directory.
  2. Open a new shell, and create / activate the environment.
poetry shell
  1. Install all module dependencies including development,
poetry install

learningeffectivedynamics's People

Contributors

pvlachas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

learningeffectivedynamics's Issues

There is not "data" file on the folder results when running "1_PCA_RC.sh"

Hello, I hope you're doing well. I was attempting to reproduce the results of your paper using the file 1_PCA_RC.sh, but I encountered an error. It appears that the 'data' file is not being created and as a result, I am getting the following error message:

ValueError: [Error] Dimensionality reduction results /home/munozdjp/Documents/Methods/Results/FHN/Trained_Models/DimRed-scaler_MinMaxZeroOne-METHOD_pca-LD_6/data not found.
Would you be able to provide any assistance or guidance on how I can resolve this issue? Thank you.

There is not "model" file on the folder results when running "3_PCA_SINDy.sh"

Hello, I hope you're doing well. I was attempting to reproduce the results of your paper using the file 3_PCA_RNN.sh, but I encountered an error. It appears that the 'model' file is not being created and as a result, I am getting the following error message:

ValueError: [Errno 2] No such file or directory: '/home/munozdjp/Documents/LED-Juan_Ibex/Code/Results/FHN/Trained_Models/GPU-RNN-DimRed-scaler_MinMaxZeroOne-METHOD_pca-LD_6-OPT_adabelief-C_lstm-R_1x16-SL_40-LR_0.01/model'

Would you be able to provide any assistance or guidance on how I can resolve this issue? Thank you.

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.