Git Product home page Git Product logo

deep-learning-reproduction-project's Introduction

Deep Learning Reproduction Project

Reproduction of the 'Deep Convolutional and LSTM Recurrent Neural Networks for Multimodal Wearable Activity Recognition' paper.

Paper link

Dataset download link

Blog Post

Requirements

Dataset

The zip downloaded from the link above should be placed in the data directory in the root of the project.

To pre-process the data run the following command:

python preprocess_data.py -i "data/OpportunityUCIDataset.zip" -o "data/pre-processed.pkl"

Running the model

To load the pre-trained model, use the following lines of code:

from model import DeepConvLSTM
import torch

SAVE_MODEL_NAME = "DeepConvLSTM_Opportunity_Model.pt"

model = DeepConvLSTM()
model.load_state_dict(torch.load(SAVE_MODEL_NAME))

After this you can insert any code you want for evaluating the model.

Running tensorboard

tensorboard --logdir runs/

What needed change

In the paper they mention 10e-3 lr, but this is too high and they actually use 10e-4. 10e-3 is too high and will cause overshooting? so there is never any improvement We found this out by checking their own training code.

Also we found that the paper uses l2 regularization, but they don't mention it in the paper. They use a value of 0.0001 for this. This is called the weight_decay in the pytorch code for RMSprop.

Lastly, in the paper the do mention weight_decay, but this is understood wrong by them. Instead the weight_decay is actually the rho of the RMSprop algorithm. In pytorch this is called alpha.

deep-learning-reproduction-project's People

Contributors

stefkaptein avatar alexj123 avatar tydefinition404 avatar

Watchers

Kostas Georgiou avatar  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.