Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shenxiangzhuang/pysesd

Time Series Seasonal Extreme Studentized Deviate(S-ESD) in Python
https://github.com/shenxiangzhuang/pysesd

anomaly-detection esd extreme-value-statistics python s-h-esd statistics time-series twitter

Last synced: 24 days ago
JSON representation

Time Series Seasonal Extreme Studentized Deviate(S-ESD) in Python

Awesome Lists containing this project

README

        


[Py]S-ESD



Seasonal Extreme Studentized Deviate(S-ESD) in Python.



Test


Documentation




PyPI Package


Coverage

# About
Seasonal Extreme Studentized Deviate(S-ESD) in Python.

# Installation

Get latest version from PyPI:

```shell
pip install pysesd
```

# Getting started

## Simple example
```python
from pysesd.dataset import load_synthetic_ts
from pysesd.sesd import SESD

ts = load_synthetic_ts()
sesd = SESD(alpha=0.05, hybrid=False, max_outliers=2)
outliers = sesd.fit(ts)
sesd.plot(save=True, fig_dir="../figures", fig_name="simple.png")
```
![](./figures/simple.png)

## Twitter example
```python
from pysesd.dataset import load_twitter_ts
from pysesd.sesd import SESD

ts = load_twitter_ts()
sesd = SESD(alpha=0.05, hybrid=True, max_outliers=int(len(ts) * 0.02))
outliers = sesd.fit(ts)
sesd.plot(save=True, fig_dir="../figures", fig_name="twitter.png")
```
![](./figures/twitter.png)

# References
- [twitter/AnomalyDetection](https://github.com/twitter/AnomalyDetection)