We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I might be missing something, but as the title suggests, the (completely untested) change below updates the threshold after the warm-up period.
diff --git a/legacy/src/main/java/macrobase/analysis/classify/EWAppxPercentileOutlierClassifier.java b/legacy/src/main/java/macrobase/analysis/classify/EWAppxPercentileOutlierClassifier.java index 05df505..7e49005 100644 --- a/legacy/src/main/java/macrobase/analysis/classify/EWAppxPercentileOutlierClassifier.java +++ b/legacy/src/main/java/macrobase/analysis/classify/EWAppxPercentileOutlierClassifier.java @@ -92,8 +92,6 @@ public class EWAppxPercentileOutlierClassifier extends OutlierClassifier { warmupInput.add(d); DatumWithNorm dwn = new DatumWithNorm(d, d.metrics().getNorm()); reservoir.insert(dwn); - reservoirDecayer.runIfNecessary(); - percentileUpdater.runIfNecessary(); } else { if(tupleCount == warmupCount) { updateThreshold(percentile); @@ -104,6 +102,8 @@ public class EWAppxPercentileOutlierClassifier extends OutlierClassifier { warmupInput.clear(); } + reservoirDecayer.runIfNecessary(); + percentileUpdater.runIfNecessary(); double norm = d.metrics().getNorm(); reservoir.insert(new DatumWithNorm(d, norm)); batchResult.add(new OutlierClassificationResult(d, norm > currentThreshold));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I might be missing something, but as the title suggests, the (completely untested) change below updates the threshold after the warm-up period.
The text was updated successfully, but these errors were encountered: