Coder Social home page Coder Social logo

lucadellalib / bayesian-deep-rul Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 3.0 5.53 MB

Bayesian Deep Learning for Remaining Useful Life Estimation of Machine Tool Components

License: Other

Python 74.62% Shell 20.26% Jupyter Notebook 5.12%
bayesian-deep-learning c-mapss condition-based-maintenance neural-network remaining-useful-life uncertainty

bayesian-deep-rul's Introduction

Bayesian Deep Learning for Remaining Useful Life Estimation of Machine Tool Components

Bayesian and frequentist deep learning models for remaining useful life (RUL) estimation are evaluated on simulated run-to-failure data. Implemented in PyTorch, developed and tested on Ubuntu 18.04 LTS. All the experiments were run on a publicly available Google Compute Engine Deep Learning VM instance with 2 vCPUs, 13 GB RAM, 1 NVIDIA Tesla K80 GPU and PyTorch 1.2 + fast.ai 1.0 (CUDA 10.0) framework.


Requirements

Anaconda Python >= 3.6.4 (see https://www.anaconda.com/distribution/)


Installation

Clone or download the repository, open a terminal in the root directory and run the following commands:

conda env create -f environment.yml

conda activate bayesian-deep-rul

Now the virtual environment bayesian-deep-rul is active. To deactivate it, run:

conda deactivate

When you do not need it anymore, run the following command to remove it:

conda remove --name bayesian-deep-rul --all


Dataset

The models were tested on the four simulated turbofan engine degradation subsets in the publicly available Commercial Modular Aero-Propulsion System Simulation (C-MAPSS) dataset. Check datasets/CMAPSS/README.md for instructions on how to download the dataset.


Usage

Open a terminal in the root directory, activate the virtual environment and run one of the following commands:

  • sh train.sh to train the selected model. Parameters can be modified by editing train.sh

  • sh evaluate.sh to evaluate the selected model. Parameters can be modified by editing evaluate.sh

  • sh run_experiments.sh to replicate the experiments on the C-MAPSS dataset


TensorBoard

Open a terminal in the root directory, activate the virtual environment and run tensorboard --logdir . to monitor the training process with TensorBoard. If you are training on a remote server, connect through SSH and forward a port from the remote server to your local computer (gcloud compute ssh <your-vm-name> --zone=<your-vm-zone> -- -L 6006:localhost:6006 on a Google Compute Engine Deep Learning VM instance).


Results

Training and evaluation logs of the experimental results are provided for verification. Run results/results.ipynb in Jupyter Notebook to check the results by yourself.


Contact

[email protected]


bayesian-deep-rul's People

Contributors

lucadellalib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bayesian-deep-rul's Issues

division by zero

Dataset: CMAPSS/FD001
Traceback (most recent call last):
File "train.py", line 162, in
MODEL = getattr(module, cls)(input_size).to(DEVICE)
File "models/frequentist_dense3.py", line 23, in init
nn.Linear(input_size[0] * input_size[1] * input_size[2], 100, bias=False),
File "/home/test/anaconda2/envs/bayesian-deep-rul/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 77, in init
self.reset_parameters()
File "/home/test/anaconda2/envs/bayesian-deep-rul/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 80, in reset_parameters
init.kaiming_uniform_(self.weight, a=math.sqrt(5))
File "/home/test/anaconda2/envs/bayesian-deep-rul/lib/python3.6/site-packages/torch/nn/init.py", line 316, in kaiming_uniform_
std = gain / math.sqrt(fan)
ZeroDivisionError: float division by zero

some questions

Hi, my computer is on windows, can the code you provided be run in pycharm or only in ubuntu?

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.