All Projects → takuti → anompy

takuti / anompy

Licence: MIT license
A Python library for anomaly detection

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to anompy

Luminaire
Luminaire is a python package that provides ML driven solutions for monitoring time series data.
Stars: ✭ 316 (+2330.77%)
Mutual labels:  forecasting, anomaly-detection
Merlion
Merlion: A Machine Learning Framework for Time Series Intelligence
Stars: ✭ 2,368 (+18115.38%)
Mutual labels:  forecasting, anomaly-detection
Deep Quant
Deep learning for forecasting company fundamental data
Stars: ✭ 112 (+761.54%)
Mutual labels:  forecasting
Modeltime
Modeltime unlocks time series forecast models and machine learning in one framework
Stars: ✭ 189 (+1353.85%)
Mutual labels:  forecasting
Stocks
Programs for stock prediction and evaluation
Stars: ✭ 155 (+1092.31%)
Mutual labels:  forecasting
Pecan
The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
Stars: ✭ 132 (+915.38%)
Mutual labels:  forecasting
Covid19 Severity Prediction
Extensive and accessible COVID-19 data + forecasting for counties and hospitals. 📈
Stars: ✭ 170 (+1207.69%)
Mutual labels:  forecasting
Ergo
A Python library for integrating model-based and judgmental forecasting
Stars: ✭ 82 (+530.77%)
Mutual labels:  forecasting
kenchi
A scikit-learn compatible library for anomaly detection
Stars: ✭ 36 (+176.92%)
Mutual labels:  anomaly-detection
Pyfts
An open source library for Fuzzy Time Series in Python
Stars: ✭ 154 (+1084.62%)
Mutual labels:  forecasting
Supplychainpy
Supplychainpy is a Python library for supply chain analysis, modelling and simulation. The library assists a workflow that is reliant on Excel and VBA.
Stars: ✭ 184 (+1315.38%)
Mutual labels:  forecasting
Gluon Ts
Probabilistic time series modeling in Python
Stars: ✭ 2,373 (+18153.85%)
Mutual labels:  forecasting
Qlik Py Tools
Data Science algorithms for Qlik implemented as a Python Server Side Extension (SSE).
Stars: ✭ 135 (+938.46%)
Mutual labels:  forecasting
Prophet
Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
Stars: ✭ 13,832 (+106300%)
Mutual labels:  forecasting
Statespacemodels.jl
StateSpaceModels.jl is a Julia package for time-series analysis using state-space models.
Stars: ✭ 116 (+792.31%)
Mutual labels:  forecasting
Tcdf
Temporal Causal Discovery Framework (PyTorch): discovering causal relationships between time series
Stars: ✭ 217 (+1569.23%)
Mutual labels:  forecasting
Forecastml
An R package with Python support for multi-step-ahead forecasting with machine learning and deep learning algorithms
Stars: ✭ 101 (+676.92%)
Mutual labels:  forecasting
Forecasting
Time Series Forecasting Best Practices & Examples
Stars: ✭ 2,123 (+16230.77%)
Mutual labels:  forecasting
Java Timeseries
Time series analysis in Java
Stars: ✭ 155 (+1092.31%)
Mutual labels:  forecasting
out-of-distribution-detection
The Ultimate Reference for Out of Distribution Detection with Deep Neural Networks
Stars: ✭ 117 (+800%)
Mutual labels:  anomaly-detection

anompy

anompy is a Python package of forecasting and anomaly detection algorithms.

Installation

$ pip install git+https://github.com/takuti/anompy.git

Usage

Generate dummy time-series:

>>> import random
>>> series = [random.random() for i in range(10)]
>>> series
[0.29749066250070444, 0.17992724665541393, 0.24201406949661697, 0.3467356134915024, 0.45318143064943217, 0.20825014566859423, 0.597497516445304, 0.5442072127508967, 0.1920841531842088, 0.2711214524302953]

Import BaseDetector which simply returns the last observed data point as a forecasted value, and create a detector with initial data point (i.e., training sample) and threshold:

>>> from anompy.detector.base import BaseDetector
>>> detector = BaseDetector(series[0], threshold=0.5)

Get forecasted time-series and their anomaly labels by calling detect() method:

>>> detector.detect(series[1:])
[(0.29749066250070444, False), (0.17992724665541393, False), (0.24201406949661697, False), (0.3467356134915024, False), (0.45318143064943217, False), (0.20825014566859423, False), (0.597497516445304, True), (0.5442072127508967, True), (0.1920841531842088, False)]

See this notebook for more examples.

Algorithm

anompy currently supports following algorithms:

  • BaseDetector
    • Directly use the last observation as a forecasted value, and detect anomaly based on threshold.
  • AverageDetector
    • Forecast either global average, simple moving average or weighted moving average.
  • ExponentialSmoothing, DoubleExponentialSmoothing, and TripleExponentialSmoothing
  • Experimental
    • ChangeFinder
    • SingularSpectrumTransform
    • StreamAnomalyDetector
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].