Name | dtaianomaly JSON |
Version |
0.2.2
JSON |
| download |
home_page | None |
Summary | A simple-to-use Python package for time series anomaly detection! |
upload_time | 2024-10-30 07:26:24 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <=3.12,>=3.8 |
license | MIT License Copyright (c) 2023 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
anomaly-detection
data-mining
|
VCS |
|
bugtrack_url |
|
requirements |
numpy
scipy
numba
stumpy
scikit-learn
pandas
matplotlib
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Dtaianomaly for Time Series Anomaly Detection
[![Documentation Status](https://readthedocs.org/projects/dtaianomaly/badge/?version=stable)](https://dtaianomaly.readthedocs.io/en/stable/?badge=stable)
[![PyPi Version](https://img.shields.io/pypi/v/dtaianomaly.svg)](https://pypi.org/project/dtaianomaly/)
[![Downloads](https://static.pepy.tech/badge/dtaianomaly)](https://pepy.tech/project/dtaianomaly)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/dtaianomaly)](https://pypi.python.org/pypi/dtaianomaly/)
[![PyPI license](https://img.shields.io/pypi/l/dtaianomaly.svg)](https://pypi.python.org/pypi/dtaianomaly/)
A simple-to-use Python package for the development and analysis of time series anomaly
detection techniques. Here we describe the main usage of `dtaianomaly`, but be sure to
check out the [documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html)
for more information.
## Installation
The preferred way to install `dtaianomaly` is via PyPi. See the [documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html)
for more options.
```
pip install dtaianomaly
```
## Features
The three key features of `dtaianomaly` are as follows:
1. State-of-the-art time series anomaly detection via a simple API.
[Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/anomaly_detection.html)
2. Develop custom models for anomaly detection.
[Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/custom_models.html)
3. Quantitative evaluation of time series anomaly detection.
[Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/quantitative_evaluation.html)
## Example
Below code shows a simple example of `dtaianomaly`, which is part of the
[anomaly detection notebook](notebooks/Anomaly-detection.ipynb). More examples
are provided in the [other notebooks](notebooks) and in the
[documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html).
```python
from dtaianomaly.data import demonstration_time_series
from dtaianomaly.preprocessing import MovingAverage
from dtaianomaly.anomaly_detection import MatrixProfileDetector
# Load the data
X, y = demonstration_time_series()
# Preprocess the data using a moving average
preprocessor = MovingAverage(window_size=10)
X_, _ = preprocessor.fit_transform(X)
# Fit the matrix profile detector on the processed data
detector = MatrixProfileDetector(window_size=100)
detector.fit(X_)
# Compute either the decision scores, specific to the detector, or the anomaly probabilities
decision_scores = detector.decision_function(X_)
anomaly_probabilities = detector.predict_proba(X_)
```
![Demonstration-time-series-detected-anomalies.svg](https://github.com/ML-KULeuven/dtaianomaly/blob/main/notebooks/Demonstration-time-series-detected-anomalies.svg?raw=true)
## Contact
Feel free to email to [louis.carpentier@kuleuven.be](mailto:louis.carpentier@kuleuven.be) if
there are any questions, remarks, ideas, ...
## License
Copyright (c) 2023 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": "dtaianomaly",
"maintainer": null,
"docs_url": null,
"requires_python": "<=3.12,>=3.8",
"maintainer_email": null,
"keywords": "machine-learning, time-series, anomaly-detection, data-mining",
"author": null,
"author_email": "Louis Carpentier <louis.carpentier@kuleuven.be>",
"download_url": "https://files.pythonhosted.org/packages/58/ad/c929c25c89fcf50c97cc7232b561890b69996367c1c4d2a22b8273df3649/dtaianomaly-0.2.2.tar.gz",
"platform": null,
"description": "# Dtaianomaly for Time Series Anomaly Detection\r\n\r\n[![Documentation Status](https://readthedocs.org/projects/dtaianomaly/badge/?version=stable)](https://dtaianomaly.readthedocs.io/en/stable/?badge=stable)\r\n[![PyPi Version](https://img.shields.io/pypi/v/dtaianomaly.svg)](https://pypi.org/project/dtaianomaly/)\r\n[![Downloads](https://static.pepy.tech/badge/dtaianomaly)](https://pepy.tech/project/dtaianomaly)\r\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/dtaianomaly)](https://pypi.python.org/pypi/dtaianomaly/)\r\n[![PyPI license](https://img.shields.io/pypi/l/dtaianomaly.svg)](https://pypi.python.org/pypi/dtaianomaly/)\r\n\r\nA simple-to-use Python package for the development and analysis of time series anomaly \r\ndetection techniques. Here we describe the main usage of `dtaianomaly`, but be sure to\r\ncheck out the [documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html) \r\nfor more information. \r\n\r\n## Installation\r\n\r\nThe preferred way to install `dtaianomaly` is via PyPi. See the [documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html) \r\nfor more options.\r\n```\r\npip install dtaianomaly\r\n```\r\n\r\n## Features\r\n\r\nThe three key features of `dtaianomaly` are as follows:\r\n1. State-of-the-art time series anomaly detection via a simple API.\r\n [Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/anomaly_detection.html)\r\n2. Develop custom models for anomaly detection.\r\n [Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/custom_models.html)\r\n3. Quantitative evaluation of time series anomaly detection.\r\n [Learn more!](https://dtaianomaly.readthedocs.io/en/stable/getting_started/quantitative_evaluation.html)\r\n\r\n## Example\r\n\r\nBelow code shows a simple example of `dtaianomaly`, which is part of the \r\n[anomaly detection notebook](notebooks/Anomaly-detection.ipynb). More examples \r\nare provided in the [other notebooks](notebooks) and in the \r\n[documentation](https://dtaianomaly.readthedocs.io/en/stable/index.html).\r\n\r\n```python\r\nfrom dtaianomaly.data import demonstration_time_series\r\nfrom dtaianomaly.preprocessing import MovingAverage\r\nfrom dtaianomaly.anomaly_detection import MatrixProfileDetector\r\n\r\n# Load the data\r\nX, y = demonstration_time_series()\r\n\r\n# Preprocess the data using a moving average\r\npreprocessor = MovingAverage(window_size=10)\r\nX_, _ = preprocessor.fit_transform(X)\r\n\r\n# Fit the matrix profile detector on the processed data\r\ndetector = MatrixProfileDetector(window_size=100)\r\ndetector.fit(X_)\r\n\r\n# Compute either the decision scores, specific to the detector, or the anomaly probabilities\r\ndecision_scores = detector.decision_function(X_)\r\nanomaly_probabilities = detector.predict_proba(X_)\r\n```\r\n![Demonstration-time-series-detected-anomalies.svg](https://github.com/ML-KULeuven/dtaianomaly/blob/main/notebooks/Demonstration-time-series-detected-anomalies.svg?raw=true)\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## License\r\n\r\n Copyright (c) 2023 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) 2023 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": "A simple-to-use Python package for time series anomaly detection!",
"version": "0.2.2",
"project_urls": {
"changelog": "https://github.com/ML-KULeuven/dtaianomaly/blob/main/CHANGELOG.md",
"documentation": "https://dtaianomaly.readthedocs.io/en/stable/index.html",
"homepage": "https://pypi.org/project/dtaianomaly/",
"repository": "https://github.com/ML-KULeuven/dtaianomaly"
},
"split_keywords": [
"machine-learning",
" time-series",
" anomaly-detection",
" data-mining"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4bf962e61bf7841f2d3573f351f1f3446ed876261967685048792ffac1dd08b8",
"md5": "7f19831d82238cf531a184dd0e9ad69c",
"sha256": "4984911111b0893a462a12fe02974376eb1d10dec059eac8f8973c0f98f3c6fa"
},
"downloads": -1,
"filename": "dtaianomaly-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f19831d82238cf531a184dd0e9ad69c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<=3.12,>=3.8",
"size": 52836,
"upload_time": "2024-10-30T07:26:22",
"upload_time_iso_8601": "2024-10-30T07:26:22.936312Z",
"url": "https://files.pythonhosted.org/packages/4b/f9/62e61bf7841f2d3573f351f1f3446ed876261967685048792ffac1dd08b8/dtaianomaly-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "58adc929c25c89fcf50c97cc7232b561890b69996367c1c4d2a22b8273df3649",
"md5": "8b49f3656816a73886a3a3371603e90c",
"sha256": "d9c058ea57c9d0b18b24f5bdad51283d3cec5c958dac9aa86e98eb19cc41c52f"
},
"downloads": -1,
"filename": "dtaianomaly-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "8b49f3656816a73886a3a3371603e90c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<=3.12,>=3.8",
"size": 36721,
"upload_time": "2024-10-30T07:26:24",
"upload_time_iso_8601": "2024-10-30T07:26:24.286975Z",
"url": "https://files.pythonhosted.org/packages/58/ad/c929c25c89fcf50c97cc7232b561890b69996367c1c4d2a22b8273df3649/dtaianomaly-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-30 07:26:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ML-KULeuven",
"github_project": "dtaianomaly",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.22"
]
]
},
{
"name": "scipy",
"specs": [
[
">=",
"1.10"
]
]
},
{
"name": "numba",
"specs": [
[
">=",
"0.58"
]
]
},
{
"name": "stumpy",
"specs": [
[
">=",
"1.12"
]
]
},
{
"name": "scikit-learn",
"specs": [
[
">=",
"1.3"
]
]
},
{
"name": "pandas",
"specs": [
[
">=",
"1.3.0"
]
]
},
{
"name": "matplotlib",
"specs": [
[
">=",
"3.7"
]
]
}
],
"lcname": "dtaianomaly"
}