Area: Observability Issues
Sub-Area: Smart Assertions Training Configuration
Applies to: Cloud
Issue
A smart assertion starts alerting only after it has enough history to train on.
Error Messages
Something unexpected happened during training.
You Might Be Asking
- Why does my smart assertion stay in learning mode?
- What does the Maximum Training Data Days setting control?
- How much history does a smart assertion need?
- Can I set Maximum Training Data Days to 5 or 14 days?
- What does "Something unexpected happened during training." mean?
Cause
Smart assertion training needs enough samples that cover enough time. By default:
- Every smart assertion type needs at least 10 samples.
- Smart volume assertions need samples that span at least 14 days.
- Smart freshness, column metric and SQL metric assertions need samples that span at least 7 days.
Until both conditions are met, the assertion keeps collecting data. If a table updates rarely, collecting 10 samples can take longer.
Maximum Training Data Days is a training data lookback window. It sets how many days of history the trainer uses. It is not a deadline for leaving learning mode. The setting's subtitle in Tune Predictions reads "This will not change the minimum training time".
DataHub Cloud v2.4.4 rejects a Maximum Training Data Days value below 15 with this message: "Invalid trainingDataLookbackWindowDays
Solution
- Wait for enough history. Let the assertion collect at least 10 samples. The samples must span 14 days for a volume assertion, or 7 days for a freshness, column metric or SQL metric assertion.
- Check Maximum Training Data Days. Open Tune Predictions for the assertion and set Maximum Training Data Days to 15 or more. Pick a window long enough to hold the required span.
- Use the Tune Predictions controls if needed. They include "Re-Train from this Run", "Train as New Normal", sensitivity (High / Medium / Low) and exclusion windows. See Smart assertions tuning.
- If you see "Something unexpected happened during training." This is the text for the UNKNOWN training error type. Its guidance is "If this persists, contact support." Smart assertions have no rule-based fallback. A training failure shows as an error on the assertion. If the error persists, contact DataHub Support.