Skip to main content

Time series anomaly detection.

Project description

tsod: Anomaly Detection for time series data.

Full test

univariate

Sensors often provide faulty or missing observations. These anomalies must be detected automatically and replaced with more feasible values before feeding the data to numerical simulation engines as boundary conditions or real time decision systems.

This package aims to provide examples and algorithms for detecting anomalies in time series data specifically tailored to DHI users and the water domain. It is simple to install and deploy operationally and is accessible to everyone (open-source).

Installation

From PyPI:

pip install tsod

Or development version:

'pip install https://github.com/DHI/tsod/archive/main.zip`

Definitions

Note that we distinguish between two types of anomaly detection

  • Outlier detection (unsupervised anomaly detection) The training data may contain outliers, i.e. observations far from most other observations. Outlier detectors try to concentrate on the observations in the training data that similar and close together, and ignores observations further away.

  • Novelty detection (semi-supervised anomaly detection) The training data is considered "normal" and is not polluted by outliers. New test data observations can be categorized as an outlier and is in this context called a novelty.

Contributing guidelines

  • Follow PEP8 code style. This is automatically checked during Pull Requests.

  • Raise custom exceptions. This makes it easier to catch and separate built-in errors from our own throws.

  • If citing or re-using other code please make sure their license is also consistent with our policy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsod-0.1.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

tsod-0.1.1-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page