Code Monkey home page Code Monkey logo

llt's Introduction

Description

The LLT method

Thit python package implements the Linear Law Transformation algorithm (LLT) for time series type data. This new technique automatically generates features from time series-type data samples which can be used for machine learning tasks for example classification.

The mathematical description and the explanation of this method can be found in the publications below:

The LLT package

The package contains two sub packages

  • preprocessing: conatins commonly used function duging evaluation and data formatting for the transformation.
  • linear_law : the implementation of the LLT technique and can generate linear law features from the dataset.

Installation

It is recommended to use a virtual environment for ensuring maximal compatibility.

Requirements

  • pyhton >=v3.9
  • scipy v1.10.1
  • numpy v1.24.2

note: the correct versions of these packages are automatically installed using the requirements.txt files. If you have newer versions they won't be downgraded but compatibility is not guaranteed.

How to install:

  1. OFFLINE: Download the dist/LLT-1.0.0-py3-none-any.whl file from the release folder and install it using pip:

     python -m pip install LLT-1.0.0-py3-none-any.whl
    
  2. ONLINE

     python -m pip install git+https://github.com/saturfy/LLT
    

USAGE

After installation it can be used as normal pyhton package. The usual way to import it is:

from LLT import preprocessing as pp
from LLT import linear_law as ll

Demo

There is an example ipython notebook in the archive under demo\LLT_QRS_peak_classifier.ipynb which demonstrates how to use the package. The notebook shows an example of ECG signal classification using the LLT technique. To run this demo you need to install additional packages which are listed in the demo\demo_requirements.txt file. Use the following command to install the exact versions of these packages with the help of the file:

python pip install -r demo_requirements.txt

You also have to download the sample ECG data (ecg_test.mat and ecg_train.mat) from here. Put these files in the same directory as the ipyython notebook.

Note: you have to make sure that your virtual environment is avalibale for jupyter and you can select is as kernel for the notbeook. The simplest way to do this if you are using venv

python -m pip install ipykernel
python -m ipykernel install --name=<name of your virtual environment>

Documentation

The package contains an API like html documentation in \docs\LLT\index.html

llt's People

Contributors

saturfy avatar

Stargazers

 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.