Solved by akhilesh_rai in post #2 
              
              
                I was able to stop the use by using break statement outside the ‘loop’. Please consider this question as ‘Resolved’ . 
# Check early stopping condition
        if epochs_no_improve == n_epochs_stop:
            print('Early stopping!' )
            early_stop = True
            break
        else:
 …