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/)
Installation using pip
pip install mrsqm
Installation from source
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(nsax=0, nsfa=5)
clf.fit(X_train,y_train)
Make predictions
predicted = clf.predict(X_test)
More examples can be found in the example directory, including a Jupyter Notebook with detailed steps for training, prediction and explanation. 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:
"Fast Time Series Classification with Random Symbolic Subsequences", Thach Le Nguyen and Georgiana Ifrim https://project.inria.fr/aaltd22/files/2022/08/AALTD22_paper_5778.pdf
"MrSQM: Fast Time Series Classification with Symbolic Representations and Efficient Sequence Mining", Thach Le Nguyen and Georgiana Ifrim https://arxiv.org/abs/2109.01036
Citation
If you use this work, please cite as:
@article{mrsqm2022,
title={Fast Time Series Classification with Random Symbolic Subsequences},
author={Le Nguyen, Thach and Ifrim, Georgiana},
year={2022},
booktitle = {AALTD},
url = {https://project.inria.fr/aaltd22/files/2022/08/AALTD22_paper_5778.pdf},
publisher={Springer}
}
@article{mrsqm2022-extended,
title={MrSQM: Fast Time Series Classification with Symbolic Representations and Efficient Sequence Mining},
author={Le Nguyen, Thach and Ifrim, Georgiana},
year={2022},
booktitle = {arxvi},
url = {https://arxiv.org/abs/2109.01036},
publisher={}
}
Metadata
Release files for mrsqm 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mrsqm-0.0.7.tar.gz | 182.0 kB | Without provenance | Details for mrsqm-0.0.7.tar.gz |
Built distributions (wheels)
Total release size: 28.9 MB
Release files / mrsqm-0.0.7.tar.gz
| Download URL | mrsqm-0.0.7.tar.gz |
|---|---|
| Size | 182.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
919c2045acef3c298045c7e12c1ca1d44f153eeaeb6fc81565cf7a8457c33afb
|
|
BLAKE2b-256 checksum How to use checksums |
7b30924447c2c945ed7cf28b3a1ade7b608362d8d4f77d770bebb51758dcd10b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | mrsqm-0.0.7-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Linux glibc 2.12+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
b4743ccf908c0def97c9ee12fb7fc0e5999b0780a43f415c3d07e13decad7f01
|
|
BLAKE2b-256 checksum How to use checksums |
cad3c88c95be4fbaa37a05c413a448f118bd235cf27c6b0565f42f2db05e7638
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-pp38-pypy38_pp73-macosx_10_13_x86_64.whl
| Download URL | mrsqm-0.0.7-pp38-pypy38_pp73-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
119c7b0beda103967729d210dae11233e8959c4727b4207acd767f158059a3f7
|
|
BLAKE2b-256 checksum How to use checksums |
62a730e0d11e2864ce077386c4fee9a88c5776544c8cdb359a7fb7786aa2e462
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mrsqm-0.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0cba25034f0f1091a8f3c0bb6c682c89c7518242ae4b123dbab8d409d761feb9
|
|
BLAKE2b-256 checksum How to use checksums |
0a7ecfd8be75862c14a506f997f9a9b966f4737050a68908ff8c33e0b68167f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mrsqm-0.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
8029da315682024ee98cf01bf6b26d64733b4a8105c036b21aa0562c73cb3d96
|
|
BLAKE2b-256 checksum How to use checksums |
ac8491036a310005bff36fdd4ac8bad4028b192f6f6ae533e2b455039614c7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp311-cp311-macosx_10_13_x86_64.whl
| Download URL | mrsqm-0.0.7-cp311-cp311-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
5bdb302439aaabaa234052ed7d1e73c5fae5fb99abab7d53ff8670436322de98
|
|
BLAKE2b-256 checksum How to use checksums |
4a13df326f8216721e47f6665a993604caa3cdf93abaaaaccb83f8c41bb09b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mrsqm-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9cd6dbcb4dea13dfca33e7329379ea471aac4e128383f88524d35685452386e2
|
|
BLAKE2b-256 checksum How to use checksums |
61d20d3dd510aa6548d2c4f7b26f64eaf2e6b87140352848d67cc010a52a98a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mrsqm-0.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
c41741e4cc5ffe9a1b331ea874d5833c24f82a0ba7451f522e920be55e1ad2ea
|
|
BLAKE2b-256 checksum How to use checksums |
b9dc8a575ebaf8730982322a3ff6d0404ef60447410a4db8b46075c078bbdcaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp310-cp310-macosx_10_13_x86_64.whl
| Download URL | mrsqm-0.0.7-cp310-cp310-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
068c98a8245cd3f7221c4483b693c72de9f69557c4e0b6d9c674b2bf4fd65420
|
|
BLAKE2b-256 checksum How to use checksums |
2c68a71488a46c2a619597e459b743b2968fcd79ebcf4b602b8227527dc363c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mrsqm-0.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f2bef1227d7f5271a245fdd18a0d3df9216b010a93589434bec1ec2ae55b7852
|
|
BLAKE2b-256 checksum How to use checksums |
793c2e8d7d02ed4eca99504ab21b11667f8da7e85cb26f252a6833984bcd0ade
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | mrsqm-0.0.7-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-32 |
|
SHA-256 checksum How to use checksums |
c7394e9dbc4d405c56ac789390d3785affe337439c9d5fee83887755c1162f73
|
|
BLAKE2b-256 checksum How to use checksums |
05df7246b2a39f83bd424f01df6dde58b27bee98d24130ee4570e91a5fadee37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mrsqm-0.0.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
86eea721e52248b1ae9d7dc257fcf19534c91d6f5aba5094ce5037dbc895dd17
|
|
BLAKE2b-256 checksum How to use checksums |
a4a484ddec246f62b861cf1df312ce41cf988dc4334bbecdaf9aca5e255ea786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp39-cp39-macosx_10_13_x86_64.whl
| Download URL | mrsqm-0.0.7-cp39-cp39-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
bc75cbda6bcbffd595a53d66d9623c8bb84c31004c41868e148528d29c1c0372
|
|
BLAKE2b-256 checksum How to use checksums |
953487a0ee8a424b2c536a334e50ff5a678b064f02653b40f8a49d5fb4ba1fe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mrsqm-0.0.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
dba9fa6548bb431c80c1d39e28571187aecfeef36ee6eb5ba7663cba0ce7568f
|
|
BLAKE2b-256 checksum How to use checksums |
6d930961264d794e94cd040e59337e9058021e59e8fa03d79031583db2570804
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | mrsqm-0.0.7-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
1cb817ec53a98559f84cc1c4ec9929b8873d767f47ae86ca97262b3f4895f347
|
|
BLAKE2b-256 checksum How to use checksums |
7f59b2e0ad59cc97511fe1a96781593b5efb9d654ae98df5cd37a184dcbc4ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
| Download URL | mrsqm-0.0.7-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-32 |
|
SHA-256 checksum How to use checksums |
ec4cbd771956825bb9bf07031cb15ed9f1ce6dde308f3dabf7c722d852f612ee
|
|
BLAKE2b-256 checksum How to use checksums |
21dadf6a2e97aba16266a408e8b0c35e09c1f429087fdb379a9657cd1bae0dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / mrsqm-0.0.7-cp38-cp38-macosx_10_13_x86_64.whl
| Download URL | mrsqm-0.0.7-cp38-cp38-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
d35d6694426b517f42ef681e0bdbe62eff40bcfd25b0a8a6f53bd378402a6422
|
|
BLAKE2b-256 checksum How to use checksums |
09868e1b51e155120fc951ddb105a368b8dbff55312ebcef6b18574250dbe490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Security for mrsqm 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.