def error_function(self, y_prediction, y_truth):<EOL>
if y_prediction != y_truth:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
Error function to calculate error