Code Monkey home page Code Monkey logo

gru-d's Introduction

Climber Motion Classification

This project aims to classify climber motions based on sensor data. The script provides functionality to train a model, pretrain a model, or finetune a model using pretraining.

Getting Started

Prerequisites

  • Python 3.7 or later
  • PyTorch
  • pandas
  • numpy

Installation

  1. Clone the repository
gh repo clone LucVermeer/gru-d
  1. Navigate to the directory
cd gru-d 
  1. Install the requirements
pip install -r requirements.txt

Running the script

This script accepts a variety of command line arguments:

  • --mode: Specifies whether to train, pretrain, coarse_pretrain or finetune the model (default is train)
  • --seed: The seed for reproducibility (default is 42)
  • --batch_size: Batch size for training (default is 32)
  • --num_workers: Number of workers for the DataLoader (default is 0)
  • --data_path: Path to the preprocessed data (default is grud/data.csv)
  • --seq_len: Sequence length for training (default is 10)
  • --step_size: Step size for training (default is 1)
  • --model_name: Name of the pretrained model (default is coarse_model_42)
  • --freeze_gru: Whether to freeze the weights of the GRU layers (default is False)

Run script from the parent directory:

cd ..

To run the script with the default parameters, use:

python -m grud.train

Example:

python -m grud.train --mode=finetune --seed=0 --batch_size=64

Experiments

Evaluation in experiments.ipynb experiments.ipynb primarily focuses on the evaluation of our model's performance.

Authors

Luc Vermeer

gru-d's People

Contributors

lucvermeer avatar

Watchers

 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.