Преглед изворни кода

Revert "Allow higher number of anomalies"

This reverts commit 4e683fc3d448aa6b91828f90cb1db92219afefeb.
Andrew Kane пре 8 година
родитељ
комит
2602c1f6c1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib/blazer/detect_anomalies.R

+ 2 - 2
lib/blazer/detect_anomalies.R

@@ -8,9 +8,9 @@ tryCatch({
   data$timestamp <- as.POSIXct(data$timestamp)
 
   if (identical(args[1], "ts")) {
-    res <- AnomalyDetectionTs(data, direction = "both", alpha = 0.05, max_anoms = 0.3)
+    res <- AnomalyDetectionTs(data, direction = "both", alpha = 0.05, max_anoms = 0.2)
   } else {
-    res <- AnomalyDetectionVec(data$count, direction = "both", alpha = 0.05, max_anoms = 0.3, period = length(data$count) / 2 - 1)
+    res <- AnomalyDetectionVec(data$count, direction = "both", alpha = 0.05, max_anoms = 0.2, period = length(data$count) / 2 - 1)
   }
 
   write.csv(res$anoms)