A simple-to-use Python package for time series anomaly detection!
Project description
Dtaianomaly for Time Series Anomaly Detection
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
for more information.
Installation
The preferred way to install dtaianomaly
is via PyPi. See the documentation
for more options.
pip install dtaianomaly
Features
The three key features of dtaianomaly
are as follows:
- State-of-the-art time series anomaly detection via a simple API. Learn more!
- Develop custom models for anomaly detection. Learn more!
- Quantitative evaluation of time series anomaly detection. Learn more!
Example
Below code shows a simple example of dtaianomaly
, which is part of the
anomaly detection notebook. More examples
are provided in the other notebooks and in the
documentation.
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_)
Contact
Feel free to email to 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.
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 dtaianomaly-0.2.2.tar.gz
.
File metadata
- Download URL: dtaianomaly-0.2.2.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c058ea57c9d0b18b24f5bdad51283d3cec5c958dac9aa86e98eb19cc41c52f |
|
MD5 | 8b49f3656816a73886a3a3371603e90c |
|
BLAKE2b-256 | 58adc929c25c89fcf50c97cc7232b561890b69996367c1c4d2a22b8273df3649 |
File details
Details for the file dtaianomaly-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: dtaianomaly-0.2.2-py3-none-any.whl
- Upload date:
- Size: 52.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4984911111b0893a462a12fe02974376eb1d10dec059eac8f8973c0f98f3c6fa |
|
MD5 | 7f19831d82238cf531a184dd0e9ad69c |
|
BLAKE2b-256 | 4bf962e61bf7841f2d3573f351f1f3446ed876261967685048792ffac1dd08b8 |