def early_stopping_monitor(i, est, locals):
 if (i == 9):
  return True
 else:
  return False

def early_stopping_monitor ( i , est , locals ) : if ( i == 9 ) : return True else : return False
returns true on the 10th iteration .