GithubHelp home page GithubHelp logo

prathapkumarbaratam / mrsqm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mlgig/mrsqm

0.0 0.0 0.0 27.68 MB

License: GNU General Public License v3.0

Python 6.59% C++ 51.46% Cython 16.39% Jupyter Notebook 25.56%

mrsqm's Introduction

MrSQM: Fast Time Series Classification with Symbolic Representations

MrSQM (Multiple Representations Sequence Miner) is a time series classifier. The MrSQM method can quickly extract features from multiple symbolic representations of time series and train a linear classification model with logistic regression. The method has four variants with four different feature selection strategies:

  • MrSQM-R: Random feature selection.
  • MrSQM-RS: MrSQM-R with a follow-up Chi2 test to filter less important features.
  • MrSQM-S: Pruning the all-subsequence feature space with a Chi2 bound and selecting the optimal set of top k subsequences.
  • MrSQM-SR: Random sampling of the features from the output of MrSQM-S.

Installation

Dependencies

cython >= 0.29
numpy >= 1.18
pandas >= 1.0.3
scikit-learn >= 0.22
fftw3 (http://www.fftw.org/)

Download the repository:

git clone https://github.com/mlgig/mrsqm.git

Move into the code directory of the repository:

cd mrsqm/mrsqm

Build package from source using:

pip install .

Example

Load data from arff files

X_train,y_train = util.load_from_arff_to_dataframe("data/Coffee/Coffee_TRAIN.arff")
X_test,y_test = util.load_from_arff_to_dataframe("data/Coffee/Coffee_TEST.arff")

Train with MrSQM

clf = MrSQMClassifier()
clf.fit(X_train,y_train)

Make predictions

predicted = clf.predict(X_test)

More examples can be found in the example directory. The full UEA and UCR Archive can be downloaded from http://www.timeseriesclassification.com/.

This repository provides supporting code, results and instructions for reproducing the work presented in our publication (under review):

"MrSQM: Fast Time Series Classification with Symbolic Representations and Efficient Sequence Mining", Thach Le Nguyen and Georgiana Ifrim

mrsqm's People

Contributors

lnthach avatar heerme 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.