library.utils.ownModels.neuralNets.utils.earlyStopping module¶
- library.utils.ownModels.neuralNets.utils.earlyStopping.get_early_stopping(monitor: str = 'val_loss', patience: int = 7, min_delta: float = 0.001, restore_best_weights: bool = True, verbose: int = 3)[source]¶
- Parameters:
monitor – determing difference
patience – number of epochs to wait before stopping
min_delta – minimum change in the monitored quantity to qualify as an improvement
restore_best_weights – whether to restore the model weights from the epoch with the best value of the monitored quantity
verbose – verbosity mode