I have this volume anomaly test on one of my sourc...
# community-support
c
I have this volume anomaly test on one of my source tables in dbt.
Copy code
sources:
  - name: source_name
    project: project_name
    dataset: source_name
    config:
      elementary:
        timestamp_column: ingstn_ts

    tables:
      - name: clicks
        data_tests:
          - elementary.volume_anomalies:
              anomaly_direction: drop
              anomaly_sensitivity: 2.0
              seasonality: day_of_week
              fail_on_zero: true
I use most of the default values (time-bucket, training-period etc..) Nevertheless, In my Elementary dashboard the training period shown is over 3 months, not the default of 14 days. Reference: https://docs.elementary-data.com/data-tests/anomaly-detection-configuration/training-period Am I missing something?
j
Hi @Christopher Ekfeldt, My guess is that is has to do with this (from the page you shared):
• Seasonality training set - If seasonality is configured, Elementary will increase the
training_period
automatically to ensure there are enough training set values to calculate an anomaly. For example if the
seasonality
of the test is
day_of_week
,
training_period
will be increased to ensure enough Sundays, Mondays, Tuesdays, etc. to calculate an anomaly for each.
However, I do agree that three months seems a bit much. What happens if you set the training period manually?
👍 1
c
Thanks @Joost Boonzajer Flaes! I will try setting the training period to 30 days.