예제 #1
0
 def detect_anomalies(self, data, **params):
     envelope = EllipticEnvelope()
     envelope.set_params(**params)
     envelope.fit(data)
     # TODO: decision function has other range than that of IsolationForest
     return envelope.decision_function(
         data)  # The anomaly score. The lower, the more abnormal.