#NEWLINE# def error( self , normalisation = True , * args , **kwargs ) : #NEWLINE# #INDENT# if normalisation : #NEWLINE# #INDENT# predictions = self . predictions ( * normalisation , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# predictions = self . predictions_no_normalisation ( * args , ** kwargs ) #NEWLINE# #UNINDENT# error = T . mean ( ( ( predictions - self . target_var ) ** 2 ) ) #NEWLINE# return error