Giter VIP home page Giter VIP logo

wavenilm's Introduction

WaveNILM

WaveNILM implementation in Keras, with Tensorflow backend as described in:

A. Harell, S. Makonin and I. V. Bajić, "Wavenilm: A Causal Neural Network for Power Disaggregation from the Complex Power Signal," ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, United Kingdom, 2019, pp. 8335-8339. doi: 10.1109/ICASSP.2019.8682543

If using this code in any research, please cite the original paper, seen above.

Dependencies:

  • Keras 2.2.2
  • Tensorflow 1.8.0
  • Sacred 0.7.4

Installation instructions:

The code was developed using pipenv*, and the environment file is included in the repository

  • Create a folder for the work environment
  • Copy pipfile.lock to the folder
  • Run

pipenv install --ignore-pipfile

  • Start the work environment using

pipenv shell

  • Clone repository to the work environement folder
  • Follow instruction in data/readme.md for copying or creating dataset files

* To install pipenv itself run:

pip install pipenv

Running instructions:

Turn on environment using pipenv shell. then run code from src folder as follows:

python waveNILM.py with <\optimizer name here> <config change values here>'

Currently configured optimizers include 'adam' and 'SGD', to include other optimizers, or to modify the optimizer parameters, see src/waveNILM.py'. Other controlable parameters include training length in samples, number of epochs to train, a cross validation flag, and more. For a full list of the parameters see 'src/waveNILM.py'

Some example runing parameters: To run the noisy scenario on the full AMPds2 dataset, with active power as both input and output, with cross validation and adam optimizer simply run

python waveNILM.py with adam

To run the same scenario but only on the first year of AMPds2, run:

python waveNILM.py with adam trn_len=525600

To run a denoised scenario on appliances number 8,14,16, with all other parameters the same, run:

python waveNILM.py with adam app_inds=[8,14,16] noise_mode=0

wavenilm's People

Contributors

picagrad avatar

Watchers

James Cloos 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.