Nitesh Sharoff
06/20/2025, 9:56 AMkapa.ai
06/20/2025, 9:56 AMkapa.ai
06/20/2025, 9:56 AMyaml models: - name: your_model columns: - name: pageviews tests: - elementary.column_anomalies: column_anomalies: - null_count anomaly_sensitivity: 2.2 - name: checkouts tests: - elementary.column_anomalies: column_anomalies: - null_count anomaly_sensitivity: 1.8 This configuration will apply a sensitivity of 2.2 to the pageviews column and 1.8 to the checkouts column. The anomaly_sensitivity parameter controls how wide the expected range is (in terms of standard deviations from the mean), so a lower value will make the test more sensitive and flag more anomalies, while a higher value will make it less sensitive and flag fewer anomalies. This approach is supported for all anomaly detection tests in Elementary, including column-level tests like column_anomalies and all_columns_anomalies, as well as table-level tests like volume_anomalies and freshness_anomalies [anomaly_sensitivity documentation](https://docs.elementary-data.com/data-tests/anomaly-detection-configuration/anomaly-sensitivity). If you want to set different thresholds for different fields, you should use the anomaly_sensitivity parameter as shown above. Note that setting absolute thresholds (e.g., "alert if value > 1000") is not currently supported; thresholds are based on z-score sensitivity, not fixed values [Slack discussion on absolute thresholds](https://slack.com/archives/C02CTC89LAX/p1706243206971089). In summary, you can customize the z-score sensitivity per field/column, but not set absolute value thresholds.Nitesh Sharoff
06/20/2025, 9:57 AMkapa.ai
06/20/2025, 9:57 AMkapa.ai
06/20/2025, 9:58 AM