Coder Social home page Coder Social logo

kth-flowai / identifying-regions-of-importance-in-wall-bounded-turbulence-through-explainable-deep-learning Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 833.86 MB

Code for reproducing the article: Identifying regions of importance in wall-bounded turbulence through explainable deep learning.

License: MIT License

Python 99.86% Shell 0.07% Dockerfile 0.07%

identifying-regions-of-importance-in-wall-bounded-turbulence-through-explainable-deep-learning's Introduction

In this repository an example of the code is provided.

Some modifications have been applied to the original code to make it run under limited resources and with a smaller database.

To create the data folder, please execute: $ ./createdata.sh

In order to reproduce the results of the paper make the following changes:

  • Simulation_3d:

    • main_segment.py:

      line 14: start = 1000
      line 15: end = 9999

    • main_CNN.py:

      line 21: CNN.define_model(shp=(shpy,shpz,shpx,3),learat=1e-2) line 22: CNN.train_model(1000,7000,delta_t=80,delta_e=200,max_epoch=2e2,
      batch_size=8,down_y=dy,down_z=dz,down_x=dx)

    • main_evCNN.py:

      line 14: end = 9999

    • main_evCNN_error.py:

      line 13: end = 9999

    • main_shap.py

      line 12: end = 9999

    • readshap.py

      line 12: end = 9999

    • shap_config.py:

      line 66: shap_values = explainer.shap_values(zshap,nsamples="auto")[0][0]

  • Experiment_2d:

    • main_segment.py:

      line 15: end = 5978

    • main_CNN.py:

      line 22: CNN.train_model(1,5978,delta_t=5978,delta_e=50,max_epoch=1.3e3,
      batch_size=128,down_y=dy,down_x=dx)

    • shap_config.py:

      line 88: shap_values = explainer.shap_values(zshap,nsamples="auto")[0][0]

In addition, the complete database is required.

  • Simulation_3d: from field 1000 to 9999 total of 9000 fields
  • Experiment_2d: from field 1_0 to 0_5978 total of 6100 fields

The repository contains the minimum data to run all the simulations. We recommend running them using the run file.

In case of running the files separately, some issues may occur due to the lack of data which is generated by a previous file.

For any trouble or doubt, please contact us:

Andres Cremades Botella: [email protected]

identifying-regions-of-importance-in-wall-bounded-turbulence-through-explainable-deep-learning's People

Contributors

ancrebo avatar

Stargazers

Learn2Learn avatar  avatar  avatar Chenyu Dong avatar

Watchers

JR avatar Ricardo Vinuesa avatar

Forkers

z-ex

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.