Skip to main content
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'


Metadata

Release files for sam-anomaly-detector 2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sam-anomaly-detector 2.3
File Size Uploaded Provenance Actions
sam_anomaly_detector-2.3.tar.gz 7.7 kB Without provenance Details for sam_anomaly_detector-2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sam-anomaly-detector 2.3
File Interpreter ABI Platform Actions
sam_anomaly_detector-2.3-py3-none-any.whl Python 3 none any Details for sam_anomaly_detector-2.3-py3-none-any.whl

Total release size: 13.2 kB

Release files / sam_anomaly_detector-2.3.tar.gz

Download URL sam_anomaly_detector-2.3.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bca0730057d50c59fd3f74f3752bb8f2cba98a3decb2616345b0a9a5a9e4afd4
BLAKE2b-256 checksum
How to use checksums
a284db64be85807d2a4d33d007fdfbde307df507c6a2b8f57e29153344f5a077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sam_anomaly_detector-2.3-py3-none-any.whl

Download URL sam_anomaly_detector-2.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ab359b69b56a325fd7e66868a17e9b4f99b1f48a042cff340bd5bac5835f3d2
BLAKE2b-256 checksum
How to use checksums
74a1bdae7c371d932e62b4ae5587267a1225c9db8dddb4840d07f7f450639fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sam-anomaly-detector 2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page