#NEWLINE# def error_function( self , y_prediction , y_truth ) : #NEWLINE# #INDENT# '\n        Error function to calculate error\n        ' #NEWLINE# if ( y_prediction != y_prediction ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0