GithubHelp home page GithubHelp logo

learning_flows_node's Introduction

Learning Flows using Neural ODEs

Learning the dynamics of a double gyre system

This repository implements the learning of the dynamics of the double gyre system using Neural ODEs. The model is trained using PyTorch and the torchdiffeq library.
Dynamics of the double gyre system are referenced from 'dgyre_eqns.pdf' (see the pdf in Neural_ODE/Reference).
Detailed report of our experiments can be found in ESE546_Project.pdf, also uploaded in the github repository

Install

In run the code install:

torchdiffeq
numpy
torch
matplotlib
tqdm

Training

To start, simply run Neural_ODE/main.py. To train the Neural ODE with prior-knowledge (KNODE):

  1. Run Neural_ODE/main_invar_knode.py and set save_data as True to save the training data. (Invar is for time-invariant flow) You can also play with the other parameters to see their effect on training. For time varying flow our results were not that great but they can be run by making the desired changes in Neural_ODE/main.py

Code Organisation

  • The folder Data contains the dataset extracted and used for training. It is extracted while running main.py and it can be used for additional visualization and testing.
  • The folder Images contains screenshots of the true and learned trajectories, in terms of time histories as well as phase portraits. These are taken during the training procedure. The number in the file titles represents the number of training epochs. (Currently a place holder on github as files are too large)
  • The folder Images_test contains screenshots of the true and learned trajectories during testing
  • The folder Models contains the trained model (Currently some folders contain models)

Code Description

Description of files:

learning_flows_node's People

Contributors

jasleen-dhanoa avatar mana5as avatar urarakono avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.