Skip to content

Commit e3ff40f

Browse files
committed
Add anomaly detection Graph visualizations to Markdown summary
1 parent 44cdfa5 commit e3ff40f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

domains/anomaly-detection/summary/anomalyDetectionSummary.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ anomaly_detection_deep_dive_report() {
7575
echo "### 2.${report_number} ${language} ${nodeLabel}" > "${detail_report_include_directory}/DeepDiveSectionTitle.md"
7676
echo "" > "${detail_report_include_directory}/empty.md"
7777
cp -f "${ANOMALY_DETECTION_SUMMARY_DIR}/report_no_anomaly_detection_data.template.md" "${detail_report_include_directory}/report_no_anomaly_detection_data.template.md"
78+
cp -f "${ANOMALY_DETECTION_SUMMARY_DIR}/report_no_anomaly_detection_graphs.template.md" "${detail_report_include_directory}/report_no_anomaly_detection_graphs.template.md"
79+
80+
# Copy
7881
cp -f "${detail_report_directory}/Top_anomaly_features.md" "${detail_report_include_directory}" || true
82+
cp -f "${detail_report_directory}/GraphVisualizations/GraphVisualizationsReferenceForSummary.md" "${detail_report_include_directory}/GraphVisualizationsReference.md" || true
7983

8084
# Assemble Markdown-Includes containing plots depending on their availability (fallback empty.md)
8185
if [ -f "${detail_report_directory}/Anomaly_feature_importance_explained.svg" ] ; then
@@ -103,6 +107,11 @@ anomaly_detection_deep_dive_report() {
103107
cat "${detail_report_directory}/report_deep_dive.template.md" | "${MARKDOWN_SCRIPTS_DIR}/embedMarkdownIncludes.sh" "${detail_report_include_directory}" > "${detail_report_directory}/report_deep_dive_with_vars.md"
104108
sed "s/{{deep_dive_directory}}/${detail_report_directory_name}/g" "${detail_report_directory}/report_deep_dive_with_vars.md" > "${detail_report_directory}/report_deep_dive_${report_number}.md"
105109

110+
# Add a page break at the end of a deep dive section
111+
{
112+
echo "--"
113+
} >> "${detail_report_directory}/report_deep_dive_${report_number}.md"
114+
106115
rm -rf "${detail_report_directory}/report_deep_dive_with_vars.md"
107116
rm -rf "${detail_report_directory}/report_deep_dive.template.md"
108117
rm -rf "${detail_report_include_directory}"

domains/anomaly-detection/summary/report_deep_dive.template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#### Archetype Distribution
1414

15-
<!-- include:DeepDiveArchetypes.md|report_no_data_info.template.md -->
15+
<!-- include:DeepDiveArchetypes.md|report_no_anomaly_detection_data.template.md -->
1616

1717
#### Top anomalies with their local contributing features (via SHAP)
1818

@@ -31,3 +31,5 @@ See [Plot Interpretation Guide](#3-plot-interpretation-guide) on how to read the
3131
<!-- include:report_deep_dive_cluster_noise_plots.md|empty.md -->
3232

3333
<!-- include:report_deep_dive_feature_plots.md|report_no_anomaly_detection_data.template.md -->
34+
35+
<!-- include:GraphVisualizationsReference.md|report_no_anomaly_detection_graphs.template.md -->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
⚠️ _No anomaly detection graph visualizations for this level._

0 commit comments

Comments
 (0)