Operational AI Input Specs
Anomaly Detection Input Specs
Use this guide to prepare the CSV accepted by the Anomaly Detection workspace. The input shape depends on the detector you choose: univariate detectors require only a timestamp and y; the contextual detector requires at least one exogenous feature; and general multivariate detectors accept exogenous features as an optional enhancement.
Where to start
Step 1
Choose the detector
Decide whether you’re looking for unusual values in one series or unusual values given other measurements.
Step 2
Prepare the matching CSV
Start with the timestamp and numeric target. Add numeric features only when your detector supports them.
Prepare your input
Use Download templates or Download samples in the Anomaly Detection workspace. Match the example to the detector you select.
Univariate Anomaly CSV
Use this shape with the Z-score and STL Z-score detectors. These models score the observed series against itself and do not accept exogenous feature columns.
Required file
anomaly-series.csv
Single time-series dataset used for anomaly scoring in the Anomaly Detection workspace.
Requirements
Required / alternative columns
date or dsy
Optional columns
numeric feature columns such as exo_temp
Approved aliases
- date: ds
Shape requirements
- Z-score and STL Z-score reject X/context feature columns.
- Isolation Forest, LOF, and One-Class SVM allow optional numeric X/context feature columns.
Format limitations
- Timestamp values currently use YYYY-MM-DD.
Unsupported currently
- Nonnumeric X/context columns are not used as model features; they are warned and ignored.
Value rules and examples
- Include either a date column or a ds column plus a numeric y column.
- Every row needs a timestamp and a numeric observed value.
- Z-score and STL Z-score reject extra feature columns; Isolation Forest, LOF, and One-Class SVM can use optional numeric feature columns.
- Nonnumeric feature columns are surfaced as warnings and ignored rather than used as model features.
Example rows
| date | y | exo_temp |
|---|---|---|
| 2024-01-01 | 100 | 18.1 |
| 2024-01-02 | 102 | 18.5 |
- Every Anomaly upload needs either date or ds together with y.
- Z-score and STL Z-score are univariate detectors — they reject uploads that include exogenous feature columns.
- STL Z-score also accepts an optional seasonal_period parameter in the workspace Configure step. Leave it blank to auto-detect from timestamp spacing.
Contextual Anomaly CSV
Use this shape with the Contextual Z-score detector. This model fits a regression of y against the provided exogenous features, then scores the residual. At least one numeric exogenous feature column is required.
Required file
anomaly-series.csv
Time-series dataset for Contextual Z-score scoring. Requires at least one numeric exogenous feature column alongside the observed value.
Requirements
Required / alternative columns
date or dsyat least one numeric exogenous feature column
Optional columns
Approved aliases
- date: ds
Shape requirements
- Contextual Z-score requires at least one usable numeric X/context feature column.
Format limitations
- Timestamp values currently use YYYY-MM-DD.
Unsupported currently
- Nonnumeric X/context columns are warned and ignored; they do not satisfy the contextual feature requirement.
Value rules and examples
- Include either a date column or a ds column plus a numeric y column.
- At least one numeric exogenous feature column is required — Contextual Z-score fits y against these features and scores the residual.
- Nonnumeric feature columns are surfaced as warnings and ignored; at least one usable numeric feature must remain.
Example rows
| date | y | exo_load |
|---|---|---|
| 2024-01-01 | 102 | 10.2 |
| 2024-01-02 | 116 | 11.6 |
- Contextual Z-score requires at least one numeric exogenous feature column — uploads without X columns will be rejected.
- The exogenous feature columns are the context the model uses to predict expected y. Include features that genuinely explain variation in y.
- All feature columns must be numeric on every row.
General Multivariate Anomaly CSV
Use this shape with Isolation Forest, Local Outlier Factor, or One-Class SVM. These detectors work on both single-variate and multivariate inputs — extra feature columns improve coverage but are not required.
Required file
anomaly-series.csv
Single time-series dataset used for anomaly scoring in the Anomaly Detection workspace.
Requirements
Required / alternative columns
date or dsy
Optional columns
numeric feature columns such as exo_temp
Approved aliases
- date: ds
Shape requirements
- Z-score and STL Z-score reject X/context feature columns.
- Isolation Forest, LOF, and One-Class SVM allow optional numeric X/context feature columns.
Format limitations
- Timestamp values currently use YYYY-MM-DD.
Unsupported currently
- Nonnumeric X/context columns are not used as model features; they are warned and ignored.
Value rules and examples
- Include either a date column or a ds column plus a numeric y column.
- Every row needs a timestamp and a numeric observed value.
- Z-score and STL Z-score reject extra feature columns; Isolation Forest, LOF, and One-Class SVM can use optional numeric feature columns.
- Nonnumeric feature columns are surfaced as warnings and ignored rather than used as model features.
Example rows
| date | y | exo_temp |
|---|---|---|
| 2024-01-01 | 100 | 18.1 |
| 2024-01-02 | 102 | 18.5 |
- Every upload still needs the base timestamp and y columns, even when extra features are present.
- Additional feature columns should stay numeric so the workspace can include them in multivariate scoring.
- Exogenous features are optional — these detectors fall back to univariate mode when no X columns are present.
Check your inputs
- Use date or ds and numeric y. Standard Z-score and STL Z-score use only those columns.
- Contextual Z-score needs at least one numeric feature. Isolation Forest, LOF, and One-Class SVM allow extra numeric features. Check the parsed features before running.
