Coder Social home page Coder Social logo

ecg-classification's Introduction

Getting started

Implemented models

  1. LeNet5
  2. AlexNet
  3. VGGNet (configuration D)
  4. GoogLeNet
  5. ResNet-34 (convolutional)

Preparing system:

  1. Install Git:
    If you on Linux, you have already installed it.
    ะžn Windows:
    https://git-scm.com/download/win
  2. Install Python:
    If you on Linux, you have already installed it.
    On Windows:
    https://www.python.org/downloads/
  3. Clone repository: git clone https://github.com/axelBaher/ecg-classification.git
  4. Setup virtual environment and install packages into it:
    python setup.py
    If script doesn't work for whatever reason, just run this command:
    pip install -r requirements.txt
    In this way, all the packages will be installed in your main (system) Python path.
  5. Go to folder with scripts:
    cd main
  6. Get necessary db and generate data:
    python prep.py

Train

To start training, you need to run this command, in the figure brackets you need to type model, which will be trained: python train.py --config {model_name}
There are five models to choose (type exactly, as it will be written below):
LeNet5, AlexNet, VGGNetD, GoogLeNet, ResNet34 In the config/training/{model_name} you can find configuration, that will be used in training.

Interence

To start inference, you need to run this commmand:
python inference.py -name {model_name} -epoch {number_of_training_epoch} -b_size {batch_size} -val_split {validation_split} [-loss {loss_function}] [-opt {optimizer}]
You need to input model name and parameters for program to find pretrained weights.

Pipeline

To start pipeline, you need to run this command:
python pipeline.py In the config/pipeline.json you can configure, which models will be trained and tested and with which parameters.

ecg-classification's People

Contributors

axelbaher avatar

ecg-classification's Issues

Make pipeline.

Make pipeline for training and testing all models with different value sets of parameters. Maybe implement stat table.

Add config system.

Using argparse, implement config system for model choosing via console while training/testing. Also, maybe add config to prep script.

Add clear script.

Add script, that will delete all generated data and db from machine.

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.