Coder Social home page Coder Social logo

amlgeos / bootstrap-rom3d Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 358.98 MB

This repository contains codes for a preprint titled "A Bootstrap Strategy to Train, Validate and Test Reduced Order Models of Coupled Geomechanical Processes" submitted to Computers and Geosciences

License: GNU General Public License v2.0

Python 100.00%
data-driven geomechanics rnn-lstm rom slope-stability

bootstrap-rom3d's Introduction

bootstrap-rom3d

This repository contains python programs developed for training and testing of ROMs and are a part of a preprint submitted to the journal Computers and Geosciences, titled "A Bootstrap Strategy to Train, Validate and Test Reduced Order Models of Coupled Geomechanical Processes".

Dependencies: Python 3.6 and later, Tensorflow (tested on 2.0), numpy, matplotlib, os, sklearn, termcolor, pickle, pyvista

image1

Important: Data for all the programs are already included in designated folders. The programs should automatically load them while running. For 3D visualisations VisIt is preferred.

Prerequisites:

  1. There are part files in the folder "./analysis/u/" with a prefix "part". Please use the following command in the Linux terminal to join them: cat part* > pca_.npy. Let the joined file remain there itself.
  2. There are part files in the folder "./results/y_val/" with a prefix "yv". Please use the following command in the Linux terminal to join them: cat yv* > y_val_seq.pkl
  3. There are part files in the folder "./results/y_val_pred/" with a prefix "yvp". Please use the following command in the Linux terminal to join them: cat yvp* > y_val_pred_seq.pkl
  4. There are part files in the folder "./results/y_test/" with a prefix "yt". Please use the following command in the Linux terminal to join them: cat yt* > y_test_seq.pkl
  5. There are part files in the folder "./results/y_test_pred/" with a prefix "ytp". Please use the following command in the Linux terminal to join them: cat ytp* > y_test_pred_seq.pkl

After joining files in steps 2 to 5 put each of them inside "./analysis/results/".

All the operations (including creation of results folder, plotting and saving) have been automated. Please run the programs in this sequence.

  1. "trainROM.py" : This is used to train the Reduced Order Model using the already extracted weights from the full order simulation states.
  2. "predictUsingROM.py" : This must be used to load the desired BCs and use the trained ROM from step 1 to generate forecasts and save the reconstructions.
  3. "plotResults.py" : Shows the progress in training w.r.t. the number of simulations.

N.B. Ignore test.txt everywhere.

bootstrap-rom3d's People

Contributors

amlgeos 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.