Code Monkey home page Code Monkey logo

learn_network_structure's Introduction

learn_network_structure

Code to identify the coupling network from time-series for coupled oscillators

In this project, we simulate a network of coupled oscillators governed by the Kuramoto model. Then we use simple convolutional neural network to learn the parameters of the model from the simulated data.

This folder contains the following python files:

  1. learn_kuramoto_files.py: auxiliary functions for generating data, analyzing results (you should not need to modify this)
  2. run_kuramoto_learn.py: script with loop to generate results and save them to file
  3. plot_learning_results.py: auxiliary functions plotting results
  4. plot_results.ipynb: a jupyter notebook for loading and plotting results

You may want to edit the second file to change the parameters. You can do this with a text editor or IDE like IDLE or spyder (my python IDE of choice). Once you are satisfied, save the file.

If you are not using and IDE, you can run the file from the command line as follows:

Step 1. Open the anaconda prompt and navigate to the desired folder using the cd command and the path:

Example: cd "C:\Users\mpanaggio\Box\MRC\learn_model_fourier"

Step 2. Activate the environment with all of the necessary packages (if you created one).

Example: activate tf

Step 3. Run the file by typing:

python run_kuramoto_learn.py

Step 4. The results should be displayed in the command window. They will also be saved to csv files (one for the frequencies, one for the matrix, and one for the coupling function). You can view these results files with a text editor or spreadsheet software like microsoft excel.

learn_network_structure's People

Contributors

mpanaggio avatar veronica-ciocanel 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.