Skip to content

Commit 0f8f737

Browse files
baturayobastienboutonnetjanet-can
authored
feat: document new anomaly detection syntax (#683)
* document new anomaly detection syntax * lint * fix redirect * update navigation * fix nav * document optional model configurations * format update * Apply suggestions from code review Fix Bastien's feedbacks Co-authored-by: Bastien Boutonnet <[email protected]> * first changes * Edited content for style and organization a bit; added to changelog * Updated nearly all instances of anomaly score to anomaly detection * refactor parameter names * add AD scenerios and potential solutions * touched up an errant style remnant * add dealing with very tight confidence intervals * Add feedback process scenerio * Explain coverage with layman approach and change the header format for mape and coverage * small update on header * tuning execution time * Edited new content for style * Corrections and clarifications * Adjusted list for overdue updates. * A few adjustments to address comments * Fix the feedbacks of Titus * fix insensitive detection graphs and explanation * fix anomaly detection docs example for feedbacks * typo fix * Edits to a few older sections * Small edits for style, wording. * Removed "not supported by soda core", updated changelog date * feat: takeover guide from anomaly score to anomaly detection (#703) * takeover guide from anomaly score to anomaly detection * Update soda-cl/anomaly-detection.md Bastien's feedback Co-authored-by: Bastien Boutonnet <[email protected]> * Update soda-cl/anomaly-detection.md Bastien's feedback Co-authored-by: Bastien Boutonnet <[email protected]> * Change header * simplify the transition description * Edits for style --------- Co-authored-by: Bastien Boutonnet <[email protected]> Co-authored-by: Janet Revell <[email protected]> * feat: support built in prophet public holidays docs (#701) * document built in holidays * update country holiday doc and syntax * edits for style --------- Co-authored-by: Janet Revell <[email protected]> * Removed short link refs * adjusted date in docs changelog * feat: document severity level parameters (#704) * document severity level parameters * Minor edits for language style * fix Bastiens feedback * minor edits --------- Co-authored-by: Janet Revell <[email protected]> * Fix migration guide (#707) * improve migration guide * Edits for language style * updates for style --------- Co-authored-by: Janet Revell <[email protected]> --------- Co-authored-by: Bastien Boutonnet <[email protected]> Co-authored-by: Janet Revell <[email protected]>
1 parent 58646c4 commit 0f8f737

38 files changed

+708
-32
lines changed

_data/nav.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@
128128
page: soda-cl/optional-config.md
129129
- subtitle: Troubleshoot SodaCL
130130
page: soda-cl/troubleshoot.md
131-
- subtitle: Anomaly score checks
131+
- subtitle: Anomaly detection checks
132+
page: soda-cl/anomaly-detection.md
133+
- subtitle: Anomaly score checks (Deprecated)
132134
page: soda-cl/anomaly-score.md
133135
- subtitle: Check template
134136
page: soda-cl/check-template.md

_includes/banner-deprecated.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="info">
2+
<span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>
3+
⚠️ The anomaly score check is deprecated, replaced by <a href="https://docs.soda.com/soda-cl/anomaly-detection.html">anomaly detection check</a>. <br /><br />
4+
Existing anomaly score checks continue to function, though Soda recommends you replace anomaly score with anomaly detection checks.
5+
</div>

_includes/check-suggest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ checks for dataset_A:
5454
#### Add row count checks
5555
This step adds two checks: one to confirm that the dataset is not empty, and one to ensure that the current row count is not significantly different from the expected row count. Soda determines the expected row count relative to the previous row count value using a time series-based anomaly detection model.
5656
57-
Refer to [Anomaly score checks]({% link soda-cl/anomaly-score.md %}) for more information.
57+
Refer to [Anomaly detection checks]({% link soda-cl/anomaly-detection.md %}) for more information.
5858
5959
```yaml
6060
checks for dataset_A:
6161
- row_count > 0
62-
- anomaly score for row_count < default
62+
- anomaly detection for row_count
6363
```
6464
6565
#### Add time-based partitioning

_includes/docker-soda-library.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Use Soda's Docker image in which Soda Scientific is pre-installed. You need Soda Scientific to be able to use SodaCL [distribution checks]({% link soda-cl/distribution.md %}) or [anomaly score checks]({% link soda-cl/anomaly-score.md %}).
1+
Use Soda's Docker image in which Soda Scientific is pre-installed. You need Soda Scientific to be able to use SodaCL [distribution checks]({% link soda-cl/distribution.md %}) or [anomaly detection checks]({% link soda-cl/anomaly-detection.md %}).
22

33
1. If you have not already done so, <a href="https://docs.docker.com/get-docker/" target="_blank">install Docker</a> in your local environment.
44
2. From Terminal, run the following command to pull Soda Library's official Docker image; adjust the version to reflect the most [recent release]({% link release-notes/soda-library.md %}).

_includes/group-anomaly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ checks for dim_customer:
1919
checks:
2020
- average_children > 2:
2121
name: Average children per gender should be more than 2
22-
- anomaly score for average_children < default:
22+
- anomaly detection for average_children:
2323
name: Detect anomaly for average children
2424
- change for average_children between -5 and 5:
2525
name: Detect unexpected changes for average children

_includes/scan-output.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Scan summary:
2525
duplicate_count: 0
2626
missing_count(adjusted_passenger_count) = 0 [PASSED]
2727
check_value: 0
28-
anomaly score for row_count < default [PASSED]
28+
anomaly detection for row_count [PASSED]
2929
check_value: 0.0
3030
Schema Check [PASSED]
3131
1/9 checks WARNED:

_includes/troubleshoot-anomaly-check-tbb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
If you have defined an `anomaly score` check and you use an M1 MacOS machine, you may get a`Library not loaded: @rpath/libtbb.dylib` error. This is a known issue in the MacOS community and is caused by issues during the installation of the <a href="https://github.com/facebook/prophet" target="_blank">prophet library</a>. There currently are no official workarounds or releases to fix the problem, but the following adjustments may address the issue.
1+
If you have defined an `anomaly detection` check and you use an M1 MacOS machine, you may get a`Library not loaded: @rpath/libtbb.dylib` error. This is a known issue in the MacOS community and is caused by issues during the installation of the <a href="https://github.com/facebook/prophet" target="_blank">prophet library</a>. There currently are no official workarounds or releases to fix the problem, but the following adjustments may address the issue.
22

33
1. Install `soda-scientific` as per the local environment installation instructions and activate the virtual environment.
44
2. Use the following command to navigate to the directory in which the `stan_model` of the `prophet` package is installed in your virtual environment.

assets/images/ad-better-fit-mape.png

573 KB
Loading

assets/images/ad-cloud-feedback.png

775 KB
Loading
Loading
155 KB
Loading
136 KB
Loading
133 KB
Loading
347 KB
Loading
125 KB
Loading

assets/images/ad-linear-green.png

124 KB
Loading
Loading
284 KB
Loading
Loading
528 KB
Loading

assets/images/ad-warning-area.png

58.5 KB
Loading

soda-agent/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ profile columns:
13321332

13331333
#### 5. Check Datasets
13341334

1335-
When Soda Cloud automatically discovers the datasets in a data source, it prepares automated monitoring checks for each dataset. These checks detect anomalies and monitor schema evolution, corresponding to the SodaCL [anomaly score]({% link soda-cl/anomaly-score.md %}) and [schema]({% link soda-cl/schema.md %}) checks, respectively.
1335+
When Soda Cloud automatically discovers the datasets in a data source, it prepares automated monitoring checks for each dataset. These checks detect anomalies and monitor schema evolution, corresponding to the SodaCL [anomaly detection]({% link soda-cl/anomaly-detection.md %}) and [schema]({% link soda-cl/schema.md %}) checks, respectively.
13361336

13371337
In the editing panel, specify the datasets that Soda Cloud must include or exclude when preparing automated monitoring checks. The default syntax in the editing panel indicates that Soda will add automated monitoring to all datasets in the data source *except* those with names that begin with `test_`. The `%` is a wildcard character.
13381338
{% include code-header.html %}

0 commit comments

Comments
 (0)