ANOMX PACKAGE
From data
to understanding.
Python building blocks for time series, forecasting, and anomaly detection. In your notebook, your pipeline, or your own system.
Start with a few lines.
Install Anomx in a virtual environment. The core install includes native time series, models, scorers, and detectors.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade anomxWindows: activate the environment with .venv\Scripts\Activate.ps1 in PowerShell.
Your first forecast.
Create a time series, split it chronologically, and evaluate a seasonal baseline on held-out data.
import numpy as np
from anomx import TimeSeries
from anomx.models import NaiveSeasonal
from anomx.metrics import mae
# A regular, deterministic signal with a 12-step cycle.
series = TimeSeries.from_values(
np.sin(np.arange(120) * 2 * np.pi / 12)
)
train, test = series.split_before(0.8)
model = NaiveSeasonal(K=12).fit(train)
forecast = model.predict(len(test))
print(mae(test, forecast))Explore the API.
From the data container to the final decision, the reference follows the package’s modules.
Data & time series
Load, structure, and prepare observations for analysis.
TimeSeries · Dataset · Transforms02Models
Learn normal behavior, forecast values, and discover structure.
Forecasting · Reconstruction · Representation03Anomaly detection
Measure deviations and turn continuous scores into decisions.
Scorers · Detectors · Pipelines04Metrics
Evaluate forecasts and results with reproducible metrics.
MAE · RMSE · Classification05Execution
Compose local workflows and track their results.
Jobs · Runs · WorkContext06Integrations
Connect optional model libraries and external data sources.
Darts · Platform · WorkspacesAdd what you need.
Install optional dependencies as extras. Darts, Torch, and ONNX are separate from the core install.
python -m pip install "anomx[visualization]"
python -m pip install "anomx[torch]"
python -m pip install "anomx[darts]"anomx[visualization]anomx[calendar]anomx[interop]anomx[pyod]anomx[storage]anomx[darts]anomx[torch]anomx[onnx]anomx[ml]anomx[platform]The API reference is generated from the Python source. Signatures, types, inheritance, and docstrings reflect the documented package version. Reference text retains the language of the source.