som.py
def error_condition(self,error):
        '''
        Constructs and checks the error condition
        '''
        window = signal.gaussian(6, std=2)
        percentile = np.percentile(np.convolve(self.errors[-self.T:-1], window, mode='full'),95) 
        self.err_condition.append(percentile)
            
        if percentile<error: 
            return True
        else:
            return False

        Constructs and checks the error condition
        
Constructs and checks the error condition
Constructs and checks the error condition
def error_condition(self,error):
        window = signal.gaussian(6, std=2)
        percentile = np.percentile(np.convolve(self.errors[-self.T:-1], window, mode='full'),95) 
        self.err_condition.append(percentile)
        if percentile<error: 
            return True
        else:
            return False
def error_condition ( self , error ) : window = signal . gaussian ( 6 , std = 2 ) percentile = np . percentile ( np . convolve ( self . errors [ - self . T : - 1 ] , window , mode = 'full' ) , 95 ) self . err_condition . append ( percentile ) if percentile < error : return True else : return False
Constructs and checks the error condition
Constructs and checks the error condition
'''
        Constructs and checks the error condition
        '''
self
error