PaTSEmb: Pattern-based Time Series Embedding
Project description
PaTSEmb
Welcome to PaTSEmb
, a fast and extendable Python package for creating a pattern-based embedding
of the time series. This is an embedding of the time series which contains information
about the typical shapes are occurring at which locations in the time series.
Below, we give a small example of how to do this, but be sure to check out the
documentation!
Installation
You can install PaTSEmb
using the following command:
pip install patsemb
If you want to mine frequent, sequential patterns, Java 1.7 or higher should also be
available on your machine. More information about installing PaTSEmb
can be found
in the documentation.
Example
The code snippet below shows how to create the pattern-based embedding of a time series. Be sure to check out the example notebook for more examples!
from patsemb.discretization import SAXDiscretizer
from patsemb.pattern_mining import QCSP
from patsemb.pattern_based_embedding import PatternBasedEmbedder
# Specify a discretizer and pattern miner, or use the default values
pattern_based_embedder = PatternBasedEmbedder(
discretizer=SAXDiscretizer(alphabet_size=8, word_size=5),
pattern_miner=QCSP(minimum_support=3, top_k_patterns=20)
)
# Create the pattern-based embedding
time_series = ... # Load here your time series as a numpy array
embedding = pattern_based_embedder.fit_transform(time_series)
Contact
Feel free to email to louis.carpentier@kuleuven.be if there are any questions, remarks, ideas, ...
Acknowledgments
If you use PaTSEmb
in your research or project, please add the following citation:
@inproceedings{carpentier2024pattern,
title={Pattern-based Time Series Semantic Segmentation with Gradual State Transitions},
author={Carpentier, Louis and Feremans, Len and Meert, Wannes and Verbeke, Mathias},
booktitle={Proceedings of the 2024 SIAM International Conference on Data Mining (SDM)},
pages={316--324},
year={2024},
month={April},
organization={SIAM},
doi={10.1137/1.9781611978032.36}
}
L. Carpentier, L. Feremans, W. Meert, and M. Verbeke. "Pattern-based time series semantic segmentation with gradual state transitions". In Proceedings of the 2024 SIAM International Conference on Data Mining (SDM), pages 316–324. SIAM, april 2024. doi: 10.1137/1.9781611978032.36.
License
Copyright (c) 2024 KU Leuven, DTAI Research Group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file patsemb-0.1.0.tar.gz
.
File metadata
- Download URL: patsemb-0.1.0.tar.gz
- Upload date:
- Size: 13.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f5feb08f22a279081bb94420600f701b96e209a3118a92e6ca5eb9496c1c9c3 |
|
MD5 | b87fdf8c63da6f00c40f80af1c063c27 |
|
BLAKE2b-256 | 224735c8a438f34a059c4debd3ace9d2cf95ddac6ff47b36c84a161907b3eb79 |
File details
Details for the file patsemb-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: patsemb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4b3857c173bd78b925600b99cebd08cf1140cf5f63df52e770d9aad141ed1b |
|
MD5 | ca3431ba763cab3986a799176428fc51 |
|
BLAKE2b-256 | c5e7fcf78b404855e975576d244a4bd07c4bee25842e4a6ff3a4c1c22f46678b |