Skip to main content

Librería para evaluación de detección de anomalías en series temporales

Reason this release was yanked:

1.0.4

Project description

TSADmetrics - Time Series Anomaly Detection Metrics

TSADmetrics is a Python library for evaluating anomaly detection algorithms in time series data.
It provides a comprehensive set of metrics specifically designed to handle the temporal nature of anomalies.


Features

  • Metric Taxonomy: Metrics are categorized into types based on how they handle temporal context:

    • MPI Metrics: Evaluate predictions at each point independently, ignoring temporal continuity.
    • MET Metrics: Consider temporal context, analyzing when and how anomalies occur.
      • MDPT: Partial detection within a real anomaly event counts as correct.
      • MDTP: Requires detection to cover a significant fraction of the real anomaly.
      • MECT: Measures alignment of real vs predicted anomaly events.
      • MPR: Penalizes late detections.
      • MTDT: Allows temporal tolerance for early or late detections.
  • Direct Metric Usage: Instantiate any metric class and call compute() for individual evaluation.

  • Batch Evaluation: Use Runner to evaluate multiple datasets and metrics at once, with support for both direct data and CSV/JSON input.

  • Flexible Configuration: Load metrics from YAML configuration files or global evaluation config files.

  • CLI Tool: Compute metrics directly from files without writing Python code.


Installation

Install TSADmetrics via pip:

pip install tsadmetrics

Documentation

The complete documentation for TSADmetrics is available at:
📚 https://tsadmetrics.readthedocs.io/

Acknowledgements

This library is based on the concepts and implementations from:
Sørbø, S., & Ruocco, M. (2023). Navigating the metric maze: a taxonomy of evaluation metrics for anomaly detection in time series. https://doi.org/10.1007/s10618-023-00988-8

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

tsadmetrics-1.0.4.tar.gz (59.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsadmetrics-1.0.4-py3-none-any.whl (94.7 kB view details)

Uploaded Python 3

File details

Details for the file tsadmetrics-1.0.4.tar.gz.

File metadata

  • Download URL: tsadmetrics-1.0.4.tar.gz
  • Upload date:
  • Size: 59.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for tsadmetrics-1.0.4.tar.gz
Algorithm Hash digest
SHA256 507bdc36b9660558b5ad89ffa43a956d1ddd63aa9ae005e8b084f3e9e16450c2
MD5 1cce210041d6ad2f49436478cbad1e4c
BLAKE2b-256 4a2d4d7c55e0ff76da06d699532c03f46afaa98229b11413ac97a24c1ed64612

See more details on using hashes here.

File details

Details for the file tsadmetrics-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: tsadmetrics-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 94.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for tsadmetrics-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a313d2924d693dfd1aa66cf9881641827d1d7b44273e82cfc5310d50b037a794
MD5 4c99801e84c86d6648a0e101391e647d
BLAKE2b-256 78f98c23c27f3f03eb43dd7af8d725a8f0d49ec4c7e26c65960f37f5ed4bde48

See more details on using hashes here.

Supported by

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