#NEWLINE# def __get_prediction( self , x ) : #NEWLINE# #INDENT# if ( ( not self . clean ) or ( self . last_x is None ) or ( not np . array_equal ( self . last_x , x ) ) ) : #NEWLINE# #INDENT# self . last_x = x #NEWLINE# self . last_prediction = self . _underlying_predict ( self ) #NEWLINE# self . clean = True #NEWLINE# #UNINDENT# return self . last_prediction . copy ( )