diff --git a/nab/detectors/expose/expose_detector.py b/nab/detectors/expose/expose_detector.py index 9579af35b..1f0f32cfa 100644 --- a/nab/detectors/expose/expose_detector.py +++ b/nab/detectors/expose/expose_detector.py @@ -66,6 +66,7 @@ def handleRecord(self, inputData): # product, is the likelihood of data point being normal. Resulting # anomaly scores are in the range of -0.02 to 1.02. anomalyScore = numpy.asscalar(1 - numpy.inner(inputFeature, exposeModel)) + anomalyScore = (anomalyScore + 0.02) / 1.04 self.timestep += 1 return [anomalyScore]