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:
continue
break
if early_stop:
print("Stopped")
break
Thanks,
Akhilesh