Model Pipeline - Early stopping implementation
This pipeline trains a neural network on data while monitoring validation loss. It stops training early if the validation loss does not improve for several epochs, preventing overfitting and saving time.