Skip to main content

PySAD is an open-source python framework for anomaly detection on streaming multivariate data.

Project description

docs/logo.png

Python Streaming Anomaly Detection (PySAD)

PyPI GitHub release (latest by date) Documentation status Gitter Azure Pipelines Build Status Travis CI Build Status Appveyor Build status Circle CI Coverage Status PyPI - Python Version Supported Platforms License

PySAD is an open-source python framework for anomaly detection on streaming multivariate data.

Documentation

Features

Online Anomaly Detection

PySAD provides methods for online/sequential anomaly detection, i.e. anomaly detection on streaming data, where model updates itself as a new instance arrives.

Resource-Efficient

Streaming methods efficiently handle the limitied memory and processing time requirements of the data streams so that they can be used in near real-time. The methods can only store an instance or a small window of recent instances.

Complete

PySAD contains stream simulators, evaluators, preprocessors, statistic trackers, postprocessors, probability calibrators and more. In addition to streaming models, PySAD also provides integrations for batch anomaly detectors of the PyOD so that they can be used in the streaming setting.

Comprehensive

PySAD serves models that are specifically designed for both univariate and multivariate data. Furthermore, one can experiment via PySAD in supervised, semi-supervised and unsupervised setting.

User Friendly

Users with any experience level can easily use PySAD. One can easily design experiments and combine the tools in the framework. Moreover, the existing methods in PySAD are easy to extend.

Free and Open Source Software (FOSS)

PySAD is distributed under BSD License 2.0 and favors FOSS principles.

Installation

The PySAD framework can be installed via:

pip install -U pysad

Alternatively, you can install the library directly using the source code in Github repository by:

git clone https://github.com/selimfirat/pysad.git
cd pysad
pip install .

Required Dependencies:

  • Python 3.8

  • numpy==1.23.5

  • scikit-learn>=1.3.0

  • scipy==1.10.0

  • pyod==1.1.0

  • combo==0.1.3

Optional Dependencies:

  • rrcf==0.4.3 (Only required for pysad.models.robust_random_cut_forest.RobustRandomCutForest)

  • PyNomaly==0.3.3 (Only required for pysad.models.loop.StreamLocalOutlierProbability)

  • mmh3==2.5.1 (Only required for pysad.models.xstream.xStream)

  • pandas==2.0.3 (Only required for pysad.utils.pandas_streamer.PandasStreamer)

Versioning

Semantic versioning is used for this project.

License

This project is licensed under the BSD License 2.0.

Citing PySAD

If you use PySAD for a scientific publication, please cite the following paper:

@article{pysad,
  title={PySAD: A Streaming Anomaly Detection Framework in Python},
  author={Yilmaz, Selim F and Kozat, Suleyman S},
  journal={arXiv preprint arXiv:2009.02572},
  year={2020}
}

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

pysad-0.2.0.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

pysad-0.2.0-py3-none-any.whl (74.1 kB view details)

Uploaded Python 3

File details

Details for the file pysad-0.2.0.tar.gz.

File metadata

  • Download URL: pysad-0.2.0.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pysad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 01ae6f26c53e11b0be1de9fce5461bf48ae624ad32bc21705ba6f682b7655735
MD5 dd3fdece2163d59af8404f4f4ee2b8bb
BLAKE2b-256 ba73c91bf5f1ebbc9958acf28c47e997e5896eb7276894c5878ad5d4ff07a33b

See more details on using hashes here.

File details

Details for the file pysad-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pysad-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 74.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pysad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0349d4535d7740bd7ff1fff855bc5ab4218c7767543cfdfb2ced380c7c6115c
MD5 fcbd84cecd6faef53dda6007d1156087
BLAKE2b-256 0e96a41bea168e0ccd25808687c0585504c84f4f2e42e4df4a6bf4634d61ebd3

See more details on using hashes here.

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