Skip to main content

Sam media anomaly detector library

Project description

Time series forecasting and anomaly detection library on top of fbprophet

.. code:: python
import pandas as pd
from psycopg2 import connect
from sam_anomaly_detector import Forecaster
df_data = pd.read_csv('dataset.csv', columns=['ds', 'y'])
json_data = df_data.to_json(orient='records')
anomalies = Detector().forecast_today(dataset=json_data)
print(anomalies)


- Input data should be a panda DataFrame having time and aggregated data
- Passed columns to forecaster should be 'ds' for 'time' and 'y' for 'aggregated data'
- Output is a panda DataFrame of anomalies. Important columns are:
- actual: today's actual value
- yhat_lower: forecast lower boundary
- yhat: : forecastted value
- yhat_upper: forecast upper boundary
- std: standard diviation from boundaries. negative value means how far it is from 'yhat_lower',
positive value means how far it is from 'yhat_upper'


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

sam_anomaly_detector-1.7.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

sam_anomaly_detector-1.7-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file sam_anomaly_detector-1.7.tar.gz.

File metadata

File hashes

Hashes for sam_anomaly_detector-1.7.tar.gz
Algorithm Hash digest
SHA256 9e4b0d2fd4a18010755765b08d24f4dd51e836a697dc58fe4b9b9517740208b1
MD5 99f1b7d8edc0dec26f1f2e0d709a9481
BLAKE2b-256 7ef07d87b7ca810bb7176e7b9846c3de085c6c556444e62c99dc133371bd1629

See more details on using hashes here.

File details

Details for the file sam_anomaly_detector-1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sam_anomaly_detector-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7e743223f254620760fbb434f04ab4a0dd7946082d0502818b8a02521521140e
MD5 84113b05f862d142182e88b7d827db83
BLAKE2b-256 10114df0aa4e7d6cc512a2d644305a7604c830b2633542b451f3aba050b8d693

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