Skip to content

Commit f7d55a0

Browse files
committed
Move property reset queries into distinct folder
1 parent d22ad1e commit f7d55a0

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

domains/anomaly-detection/features/AnomalyDetectionFeatures-Reset.cypher renamed to domains/anomaly-detection/reset/AnomalyDetectionReset-Algorithms.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Reset all features related to anomaly detection for code units to force a recalculation
1+
// Reset all algorithm features related to anomaly detection for code units to force a recalculation
22

33
MATCH (codeUnit)
44
WHERE $projection_node_label IN labels(codeUnit)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Reset all results related to anomaly detection for code units to force a clean recalculation
2+
3+
MATCH (codeUnit)
4+
WHERE $projection_node_label IN labels(codeUnit)
5+
REMOVE codeUnit.anomalyLabel
6+
,codeUnit.anomalyScore
7+
,codeUnit.anomalyTopFeature1
8+
,codeUnit.anomalyTopFeature2
9+
,codeUnit.anomalyTopFeature3
10+
,codeUnit.anomalyTopFeatureSHAPValue1
11+
,codeUnit.anomalyTopFeatureSHAPValue2
12+
,codeUnit.anomalyTopFeatureSHAPValue3

domains/anomaly-detection/features/AnomalyDetectionClusteringResultsReset.cypher renamed to domains/anomaly-detection/reset/AnomalyDetectionReset-Clustering.cypher

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
MATCH (codeUnit)
44
WHERE $projection_node_label IN labels(codeUnit)
5-
REMOVE codeUnit.clusteringHDBSCANLabel
5+
REMOVE codeUnit.communityLeidenIdTuned
6+
,codeUnit.clusteringHDBSCANLabel
67
,codeUnit.clusteringHDBSCANProbability
78
,codeUnit.clusteringHDBSCANNoise
89
,codeUnit.clusteringHDBSCANMedoid
9-
,codeUnit.clusteringHDBSCANSize
10+
,codeUnit.clusteringHDBSCANSize
11+
,codeUnit.clusteringHDBSCANRadiusAverage
12+
,codeUnit.clusteringHDBSCANRadiusMax
13+
,codeUnit.clusteringHDBSCANNormalizedDistanceToMedoid
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Reset all embeddings related to anomaly detection for code units to force a clean recalculation
2+
3+
MATCH (codeUnit)
4+
WHERE $projection_node_label IN labels(codeUnit)
5+
REMOVE codeUnit.embeddingsFastRandomProjectionTunedForClustering
6+
,codeUnit.embeddingsFastRandomProjectionTunedForClusteringVisualizationX
7+
,codeUnit.embeddingsFastRandomProjectionTunedForClusteringVisualizationY

0 commit comments

Comments
 (0)