Skip to content

Commit

Permalink
reduce recall since alertOnce reduced recall
Browse files Browse the repository at this point in the history
Signed-off-by: Kaituo Li <kaituo@amazon.com>
  • Loading branch information
kaituo committed Aug 14, 2023
1 parent b3fe699 commit 001e4c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void testDataset() throws Exception {
// TODO: this test case will run for a much longer time and timeout with security enabled
if (!isHttps()) {
disableResourceNotFoundFaultTolerence();
verifyAnomaly("synthetic", 1, 1500, 8, .4, .9, 10);
verifyAnomaly("synthetic", 1, 1500, 8, .4, .7, 10);
}
}

Expand Down Expand Up @@ -96,7 +96,7 @@ private void verifyTestResults(

// recall = windows containing predicted anomaly points / total anomaly windows
double recall = anomalies.size() > 0 ? positiveAnomalies / anomalies.size() : 1;
assertTrue(recall >= minRecall);
assertTrue(String.format(Locale.ROOT, "recall should be %f but got %f", recall, minRecall), recall >= minRecall);

assertTrue(errors <= maxError);
LOG.info("Precision: {}, Window recall: {}", precision, recall);
Expand Down

0 comments on commit 001e4c9

Please sign in to comment.