|
|
|
@ -116,14 +116,16 @@ class AnomalyDetection:
|
|
|
|
|
@param info stored information about this
|
|
|
|
|
"""
|
|
|
|
|
def predict(self,xo,info):
|
|
|
|
|
xo = ML.Filter(info['extract'],xo)
|
|
|
|
|
|
|
|
|
|
xo = ML.Extract(info['features'],xo)
|
|
|
|
|
|
|
|
|
|
if not xo :
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
sigma = info['parameters']['cov']
|
|
|
|
|
xu = info['parameters']['mean']
|
|
|
|
|
epsilon = info['performance']['epsilon']
|
|
|
|
|
return self.getPx(xu,sigma,xo,epsilon)
|
|
|
|
|
return self.gPx(xu,sigma,xo,epsilon)
|
|
|
|
|
"""
|
|
|
|
|
This function computes performance metrics i.e precision, recall and f-score
|
|
|
|
|
for details visit https://en.wikipedia.org/wiki/Precision_and_recall
|
|
|
|
|