Git Product home page Git Product logo

self-supervised-ssl's Introduction

Improving Semi-Supervised Learning for Remaining Useful Lifetime Estimation Through Self-Supervision

This is the companion repository for the paper "Improving Semi-Supervised Learning for Remaining Useful Lifetime Estimation Through Self-Supervision". It is currently available as a manuscript on arXiv and under review at the RESS journal.

Installation

Environment

This project uses Python 3.7 and pipenv to manage its environment. Install pipenv as:

pip install -U pipenv

You can set up this project in a virtual environment afterwards with:

cd <PROJECT_ROOT>
pipenv install --skip-lock

Please make sure that the appropriate Nvidia driver, CUDA 10.2 and cuDNN are installed on your system.

Data

Download the NASA C-MAPSS dataset here and extract the content to <PROJECT_ROOT>/data/CMAPSS.

Verify Installation

Test the installation by running the unit tests:

pipenv shell
export PYTHONPATH=$PYTHONPATH:./src
python -m unittest -v

Usage

Concerning Ray

This project uses ray to parallelize the training. It expects a GPU and at least 3 CPU cores to run one training instance and will try to put two runs on one GPU if more CPU cores are available. If you want to customize these requirements, please edit the ray.remote function decorators in the file run_semi_supervised.py.

Basic Usage

To start reproducing the results, enter the source directory of the project and open the pipenv shell if you haven't already:

pipenv shell
cd <PROJECT_ROOT>/src

To reproduce all baseline experiments call:

python reproduce_baseline.py 2021

To reproduce each of the SSL methods call:

python reproduce_semi_supervised.py 2021 --mode metric
python reproduce_semi_supervised.py autoencoder --mode autoencoder
python reproduce_semi_supervised.py rbm --mode rbm

Advanced Usage

If you want to modify any of the experiments, you can start with the hyperparameter configurations. The config folder contains JSON configs for each experiment.

If you want to run an autoencoder or self-supervised pre-training experiment, you can use the run_pretraining.py script. Pre-training experiments with RBMs can be run with the run_rbm.py script. Please consult the scripts help page for their usage with python <SCRIPT> --help.

self-supervised-ssl's People

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.