Name | patsemb JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | PaTSEmb: Pattern-based Time Series Embedding |
upload_time | 2024-09-18 12:18:04 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <=3.12,>=3.8 |
license | MIT 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. |
keywords |
machine-learning
time-series
semantic-segmentation
data-mining
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PaTSEmb
[![pipeline status](https://gitlab.kuleuven.be/u0143709/patsemb/badges/main/pipeline.svg)](https://gitlab.kuleuven.be/u0143709/patsemb/-/commits/main)
[![coverage report](https://gitlab.kuleuven.be/u0143709/patsemb/badges/main/coverage.svg)](https://gitlab.kuleuven.be/u0143709/patsemb/-/commits/main)
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](https://patsemb-u0143709-3a07c9d27a51b62b1b2bad2f623ad154a9a19db833f1f7.pages.gitlab.kuleuven.be/index.html)!
## 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](https://patsemb-u0143709-3a07c9d27a51b62b1b2bad2f623ad154a9a19db833f1f7.pages.gitlab.kuleuven.be/getting_started/installation.html).
## 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](https://gitlab.kuleuven.be/m-group-campus-brugge/dtai_public/patsemb/-/blob/main/notebooks/examples.ipynb?ref_type=heads)
for more examples!
```python
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](mailto: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:
```bibtex
@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](https://doi.org/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.
Raw data
{
"_id": null,
"home_page": null,
"name": "patsemb",
"maintainer": null,
"docs_url": null,
"requires_python": "<=3.12,>=3.8",
"maintainer_email": null,
"keywords": "machine-learning, time-series, semantic-segmentation, data-mining",
"author": null,
"author_email": "Louis Carpentier <louis.carpentier@kuleuven.be>",
"download_url": "https://files.pythonhosted.org/packages/05/99/a9f71ff3eeef3b902174ffab621657bec9eeb55ca4208369c7a34f045776/patsemb-0.1.1.tar.gz",
"platform": null,
"description": "# PaTSEmb\r\n\r\n[![pipeline status](https://gitlab.kuleuven.be/u0143709/patsemb/badges/main/pipeline.svg)](https://gitlab.kuleuven.be/u0143709/patsemb/-/commits/main)\r\n[![coverage report](https://gitlab.kuleuven.be/u0143709/patsemb/badges/main/coverage.svg)](https://gitlab.kuleuven.be/u0143709/patsemb/-/commits/main)\r\n\r\nWelcome to ``PaTSEmb``, a fast and extendable Python package for creating a pattern-based embedding\r\nof the time series. This is an embedding of the time series which contains information\r\nabout the typical shapes are occurring at which locations in the time series. \r\nBelow, we give a small example of how to do this, but be sure to check out the \r\n[documentation](https://patsemb-u0143709-3a07c9d27a51b62b1b2bad2f623ad154a9a19db833f1f7.pages.gitlab.kuleuven.be/index.html)!\r\n\r\n## Installation\r\n\r\nYou can install ``PaTSEmb`` using the following command:\r\n```\r\npip install patsemb\r\n```\r\nIf you want to mine frequent, sequential patterns, Java 1.7 or higher should also be \r\navailable on your machine. More information about installing ``PaTSEmb`` can be found \r\nin the [documentation](https://patsemb-u0143709-3a07c9d27a51b62b1b2bad2f623ad154a9a19db833f1f7.pages.gitlab.kuleuven.be/getting_started/installation.html).\r\n\r\n## Example \r\n\r\nThe code snippet below shows how to create the pattern-based embedding of a \r\ntime series. Be sure to check out the [example notebook](https://gitlab.kuleuven.be/m-group-campus-brugge/dtai_public/patsemb/-/blob/main/notebooks/examples.ipynb?ref_type=heads) \r\nfor more examples!\r\n\r\n```python\r\nfrom patsemb.discretization import SAXDiscretizer\r\nfrom patsemb.pattern_mining import QCSP\r\nfrom patsemb.pattern_based_embedding import PatternBasedEmbedder\r\n\r\n# Specify a discretizer and pattern miner, or use the default values\r\npattern_based_embedder = PatternBasedEmbedder(\r\n discretizer=SAXDiscretizer(alphabet_size=8, word_size=5),\r\n pattern_miner=QCSP(minimum_support=3, top_k_patterns=20)\r\n)\r\n\r\n# Create the pattern-based embedding\r\ntime_series = ... # Load here your time series as a numpy array\r\nembedding = pattern_based_embedder.fit_transform(time_series)\r\n```\r\n\r\n## Contact\r\n\r\nFeel free to email to [louis.carpentier@kuleuven.be](mailto:louis.carpentier@kuleuven.be) if \r\nthere are any questions, remarks, ideas, ...\r\n\r\n## Acknowledgments \r\n\r\nIf you use ``PaTSEmb`` in your research or project, please add the following citation:\r\n\r\n```bibtex\r\n@inproceedings{carpentier2024pattern,\r\n title={Pattern-based Time Series Semantic Segmentation with Gradual State Transitions},\r\n author={Carpentier, Louis and Feremans, Len and Meert, Wannes and Verbeke, Mathias},\r\n booktitle={Proceedings of the 2024 SIAM International Conference on Data Mining (SDM)},\r\n pages={316--324},\r\n year={2024},\r\n month={April},\r\n organization={SIAM},\r\n doi={10.1137/1.9781611978032.36}\r\n}\r\n```\r\n> L. Carpentier, L. Feremans, W. Meert, and M. Verbeke. \r\n> \"Pattern-based time series semantic segmentation with gradual state transitions\". \r\n> In Proceedings of the 2024 SIAM International Conference on Data Mining (SDM), \r\n> pages 316\u2013324. SIAM, april 2024. doi: [10.1137/1.9781611978032.36](https://doi.org/10.1137/1.9781611978032.36).\r\n\r\n## License\r\n\r\n Copyright (c) 2024 KU Leuven, DTAI Research Group\r\n\r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n",
"bugtrack_url": null,
"license": "MIT 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. ",
"summary": "PaTSEmb: Pattern-based Time Series Embedding",
"version": "0.1.1",
"project_urls": {
"changelog": "https://gitlab.kuleuven.be/m-group-campus-brugge/dtai_public/patsemb/-/blob/main/CHANGELOG.md",
"documentation": "https://patsemb-u0143709-3a07c9d27a51b62b1b2bad2f623ad154a9a19db833f1f7.pages.gitlab.kuleuven.be/",
"homepage": "https://pypi.org/project/patsemb/",
"repository": "https://gitlab.kuleuven.be/m-group-campus-brugge/dtai_public/patsemb"
},
"split_keywords": [
"machine-learning",
" time-series",
" semantic-segmentation",
" data-mining"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "515ff6a9ddd57bdedcd0ce340716a30e8c92b8ba2d2dcaa86fe5c69f0429e8c9",
"md5": "5da382c02d0f8cd2955cd8d94fcb7183",
"sha256": "f43076800c8e0af4831ff256ca838f560dd3da47f06e2bfc20754ac85c97ed39"
},
"downloads": -1,
"filename": "patsemb-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5da382c02d0f8cd2955cd8d94fcb7183",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<=3.12,>=3.8",
"size": 13199608,
"upload_time": "2024-09-18T12:17:53",
"upload_time_iso_8601": "2024-09-18T12:17:53.198212Z",
"url": "https://files.pythonhosted.org/packages/51/5f/f6a9ddd57bdedcd0ce340716a30e8c92b8ba2d2dcaa86fe5c69f0429e8c9/patsemb-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0599a9f71ff3eeef3b902174ffab621657bec9eeb55ca4208369c7a34f045776",
"md5": "ba7c45e4fdced90072a12d8324d47208",
"sha256": "a0ed9710f32aad198cfe262f84e4f7617e282cc37f8e5ce99ece09e9bf41665e"
},
"downloads": -1,
"filename": "patsemb-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "ba7c45e4fdced90072a12d8324d47208",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<=3.12,>=3.8",
"size": 13194138,
"upload_time": "2024-09-18T12:18:04",
"upload_time_iso_8601": "2024-09-18T12:18:04.062783Z",
"url": "https://files.pythonhosted.org/packages/05/99/a9f71ff3eeef3b902174ffab621657bec9eeb55ca4208369c7a34f045776/patsemb-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-18 12:18:04",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "patsemb"
}