Coder Social home page Coder Social logo

gmd-code's Introduction

GMD-code

This repository is a set a function implementing the method described in the paper: "Combining data assimilation and machine learning to emulate a dynamical model from sparse and noisy observations" by Julien Brajard, Alberto Carrassi, Marc Bocquet, and Laurent Bertino.

A example script is provided to run the "reference setup" described in the paper.

Installation

Tested on Linux/MacOS1

  1. Prerequisiste: python3.5+ (suggest setting it up with anaconda).
  2. Download DAPPER v0.8
  3. Copy the following files in the DAPPER main directory (suggest download the whole repository):
  4. Create a directory to save results: mkdir example_data
  5. Install the required python modules: pip install -r requirements.txt
  6. Run the exemple file (you can modify the file to speed up the run): python exemple.py

Results

The code example.py will run the algorithm described in the paper for the standard setup (to run the other setups, you can modify the example.py code). The standard experiment run can take several hours.

The output of the code are saved on the example_data directory:

  • weights_init.h5: initial weights of the neural network
  • weights_nn.h5: weights of the neural network after optimization
  • simulation.png: figure showing one simulation of 5 unit time steps (about 8 Lyapunov time steps).

If the algorithm has run at least once, and you have already produced weights saved in example_data/weights_nn.h5, you can run the code plot_simu.py to load the weights, make a simulation and a plot without the long optimization process: python plot_simu.py

In the file simulation.png, you should obtained the following figure: reference simulation

1: For MacOS, the pythonw was used after installation through conda install python.app

gmd-code's People

Contributors

brajard avatar

Watchers

James Cloos 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.