Is there a way to replicate behavior of Keras earlyStopping method in PyTorch?
For example, if I want best model in regards of f1 score rather than acquired validation accuracy, is there an equivalent to Keras
earlyStopping = EarlyStopping(monitor='f1_score', patience=10, verbose=0, mode='min')?