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