semvec/pypi-packages huggingface dataset:
ztsad 0.0.2
A package for time series anomaly detection
Keywords: timeseries

# Time Series Anomaly Detection

Usage:
```python
import pandas as pd
from ztsad import AnomalyDetection
from sklearn.cluster import KMeans

kmeans = KMeans(n_clusters=10)
alg = AnomalyDetection(
    anomaly_sensitivity=0.33,
    clustering_alg=kmeans,
    quantize=True,
    eps=0.1
)

# All time series data for training
time_series_data = pd.read_csv("data.csv", sep=",")
alg.fit(time_series_data)

# Single test time series
test_time_series = pd.read_csv("test.csv", sep=",")

# True indicates anomaly
print(alg.predict(test_time_series))
```