Giter Site home page Giter Site logo

cmapss-release's Introduction

Code implementation for "A dual attention LSTM lightweight model based on exponential smoothing for remaining useful life prediction"

This project provides all the code for data-preprocessing, model construction and model evaluation. Checkpoints for the trained models are also included for further study. Pytorch is used to construct the DA-LSTM model.

File Structure

├───dataset
│   ├───__init__.py
│   └───preprocessing.py
├───model
│   ├───__init__.py
│   ├───Attention_modules.py
│   └───LSTM_Attention.py
├───scipt
│   ├───parametric_statistics.py
│   ├───test_model.py
│   └───train_model.py
├───trials
│   ├───model_FD001.pkl
│   ├───model_FD002.pkl
│   ├───model_FD003.pkl
│   └───model_FD004.pkl
├───utils
│   ├───__init__.py
│   └───functions.py
  • The CMAPSSData/ folder contains the official CMAPSS-dataset.
  • The dataset/ folder and utils/ folder contain the functions for data preprocessing and model training respectively.
  • The trials/ folder contains the checkpoints for the trained models on the four sub-datasets.
  • The model/ folder contains the components for the DA-LSTM model.

Running Guide

You can either load the models for testing or training your own models from scratch. Take notice that there are four sub-datasets in the CMAPSS Dastset. Consequently, certain parameters need to be changed according to the subdatasets.

Running Tests

You can load the trained checkpoints directly by running test_model.py in the scipt/ folder.

cd [parent folder of the project]/CMAPSS-release/scipt/
python .\test_model.py

Training Models

If you need to retrain the models, you can run train_model.py in the scipt/ folder. The trianed checkpoints are save in the \trials directory.

cd [parent folder of the project]/CMAPSS-release/scipt/
python .\train_model.py

Evaluating Models

If you need to evaluate number of parameters in the model, you can run parameter statistics.py in the scipt/ folder.

cd [parent folder of the project]/CMAPSS-release/scipt/
python .\parameter statistics.py

cmapss-release's People

Contributors

tortorish avatar

Stargazers

 avatar  avatar lee avatar Tian Niu avatar  avatar

Watchers

 avatar

Forkers

jgf1

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.